Fit general linear model - sjgershm/ccnl-fmri GitHub Wiki

Models are numbered by integers (see this page for an explanation of how to set them up). To fit a model (i.e., estimate the coefficients of the general linear model), call:

ccnl_fmri_glm(EXPT,model,subjects)

This will create a new model directory (EXPT.modeldir) if it doesn't exist already, and a separate sub-directory for each subject. These subdirectories contain beta images (statistical parametric maps of the regression coefficients). It will also save SPM.mat, which contains all relevant information about the model that SPM uses for subsequent analysis.