-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting voxelwise maps for logL
(and other attributes of LikelihoodModelResults)
#2417
Comments
I'd also like to see a degrees of freedom map |
Do degrees of freedom vary by voxel? My understanding is that every voxel should have the same number of time points and every voxel should have the same model applied to it. (here is the calculation) I could be looking in the wrong place... Would you like an single value attribute representing degrees of freedom be available from the |
Indeed, degrees of freedom are constant across voxels. |
@jdkent |
Great, in some other software it can vary by voxel if its estimated, so no need for that, then. |
@bthirion, is there a principled reason to store voxels under separate AR1 models, as opposed to the other way around? It seems more intuitive to me to store all the attributes (R^2, logL, etc.) as 1d arrays of length n_voxels than to have variable length arrays under each of the AR1 bins. To ensure the mapping is preserved, one could add an |
Thx for you suggestion
|
To get residual maps nilearn/nistats#410, we added a method called
_get_voxelwise_model_attribute
, which has broader use than returning residuals, such as "potentially" returning log-likelihood and other attributes ofRegressionResult
andLikelihoodModelResults
.However, there was some difficulty getting a voxelwise map of the logL results, with discussion/investigation outlined here and potential solution outlined here
Let me know if the solution looks reasonable, and I can open a pull request.
(and perhaps outline which attributes we would want to make explicit methods for in addition to residuals, predicted, and r_square in the
FirstLevelModel
class. For example, including:logL
SSE
MSE
The text was updated successfully, but these errors were encountered: