Does the following work for getting the residual sums of squares from the
ResMS.img and SPM.mat files; or is there another solution.
From my reading of spm_spm.m:
SPM.VResMS.pinfo(1) should be the trace(RV)
ResMS image is the residual sums of squares divided by the trace(RV)
So,
load SPM.mat
load image
RSS=image*SPM.VResMS.pinfo(1)
Is this correct?
|