[[FsgdExamples|Back to FSGD Examples]] ~+'''Four Groups (Two Factors/Two Levels), No Covariates'''+~ This models the input as four separate offsets/intercepts/means, one for each group. The four groups can be thought of as two levels of a two discrete factors (eg, Gender (Male, Female), Handedness (Left, Right)). There is not continuous covariate. These results hold for DODS or DOSS. <> = FSGD File (g4v0.fsgd) = {{{ GroupDescriptorFile 1 Title OSGM Class MaleRight Class MaleLeft Class FemaleRight Class FemaleLeft Input subject1 MaleRight Input subject2 MaleLeft Input subject3 FemaleRight Input subject4 FemaleLeft }}} Nclasses = 4 <
> Nvariables = 0 <
> = Regressors = NregressorsDODS = Nclasses*(Nvariables+1) = 4*(0+1) = 4 <
> NregressorsDOSS = Nclasses + Nvariables = 4+0 = 4 <
> Regressor1: ones for MaleRight subjects, 0 otherwise. Codes intercept/mean for Group 1 <
> Regressor2: ones for MaleLeft subjects, 0 otherwise. Codes intercept/mean for Group 2 <
> Regressor3: ones for FemaleRight subjects, 0 otherwise. Codes intercept/mean for Group 2 <
> Regressor4: ones for FemaleLeft subjects, 0 otherwise. Codes intercept/mean for Group 3 <
> = Contrasts = The number of columns in each contrast matrix must be the same as the number of regressors (Nregressors). If there is only one row in the contrast matrix, then the result will be a t-test and will have a sign. Reversing the signs in the contrast matrix will only change the sign of the output, not its magnitude. If there is more than one row, the result will be an F-test and will be unsigned. == Contrast 1 male.right-vs-left.mtx == Null Hypothesis: is there a difference between the Male Righthanders and Male Lefthanders? {{{ 1 -1 0 0 }}} This is a t-test with MR>ML being positive (red/yellow). == Contrast 2 female.right-vs-left.mtx == Null Hypothesis: is there a difference between the Female Righthanders and Male Lefthanders? {{{ 0 0 1 -1 }}} This is a t-test with FR>FL being positive (red/yellow). == Contrast 3 right.male-female.mtx == Null Hypothesis: is there a difference between the Righthanded Males and Females? {{{ 1 0 -1 0 }}} This is a t-test with M>F being positive (red/yellow). == Contrast 4 left.male-female.mtx == Null Hypothesis: is there a difference between the Lefthanded Males and Females? {{{ 0 1 0 -1 }}} This is a t-test with M>F being positive (red/yellow). == Contrast 5 male-female.mtx == Null Hypothesis: is there a difference between Males and Females regressing out the effects of handedness? {{{ 0.5 0.5 -0.5 -0.5 }}} This is a t-test with M>F being positive (red/yellow). This could also have been [1 1 -1 -1] without effecting the significance. But using 0.5 makes the gamma output volume have the same scale. Eg, if the input is thickness in mm, then the output will be the mean MF difference in thickness also meausred in mm. == Contrast 6 right-left.mtx == Null Hypothesis: is there a difference between Righties and Lefties regressing out the effects of gender? {{{ 0.5 -0.5 0.5 -0.5 }}} This is a t-test with R>L being positive (red/yellow). See Contrast 5 for notes on scale. == Contrast 7 gender-x-handedness.mtx == Null Hypothesis: is there an interaction between gender and handedness? {{{ 0.5 -0.5 -0.5 0.5 }}} This is a t-test. == mri_glmfit command == This is an example invocation of mri_glmfit. Depending upon your application, you may have other options as well. {{{ mri_glmfit \ --glmdir g4v0 \ --y y.mgh \ --fsgd g4v0.fsgd \ --C male.right-vs-left.mtx \ --C female.right-vs-left.mtx --C right.male-female.mtx \ --C left.male-female.mtx \ --C male-female.mtx \ --C right-left.mtx \ --C gender-x-handedness.mtx }}}