GLM on time series?

Hey,

I’m looking for a way to run a GLM on the average response from an roi. Is there a way to do that in nipype/nilearn/nipy, or only by estimating the model on the entire brain and then extracting betas for the roi?

Thanks