Have you looked at spm_non_sphericity?

On 01/14/2014 02:26 PM, gj wrote:
[log in to unmask]" type="cite">
Hi,

I apologize for the following very naive and big-no-no/way-too-general question...but time crunch is getting painful... I'd like to
understand how covariance/hyperparameter/nonsphericity calculations are PRACTICALLY handled in SPM (i.e. structures, code) so I can properly set up SPM.xVi.Vi and SPM.xVi.I in a Matlab script for a 2nd level analysis with 3 basis functions (and hence I should have 6 hyperparameters if I only have a single contrast in my 2nd level design, but I'm failing to set this up properly....and as far as I understand, I need to make sure that xVi.Vi is an nxn matrix, such that n=#observations, so if I take a single contrast from 1st level with 3 basis functions and 10 subjects, this would be a 30x30 matrix?)....

Any pointers/guidelines/thoughts and your patience greatly appreciated!!