|
Size: 2323
Comment:
|
← Revision 9 as of 2008-04-29 11:46:15 ⇥
Size: 2231
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| [wiki:Self:FsTutorial top] | [wiki:Self:FsTutorial/GroupAnalysis previous] | [[FsTutorial|top]] | [[FsTutorial/GroupAnalysis|previous]] *To follow this exercise exactly be sure you've downloaded the [[FsTutorial/Data|tutorial data set]] before you begin. If you choose not to download the data set you can follow these instructions on your own data, but you will have to substitute your own specific paths and subject names. |
| Line 5: | Line 7: |
| The design matrix generated from the FSGD file consists of the last three columns of: {{{ SubjectID Male Female Age |
|
| Line 9: | Line 8: |
| 004 1 0 22 008 0 1 88 017 1 0 25 021 1 0 22 032 1 0 79 039 0 1 69 040 0 1 24 045 0 1 78 049 1 0 19 067 1 0 71 073 1 0 77 074 1 0 85 080 1 0 23 084 1 0 21 091 0 1 23 092 1 0 29 093 0 1 22 095 0 1 70 097 1 0 74 099 0 1 93 102 0 1 82 103 0 1 66 106 1 0 27 108 1 0 28 111 0 1 81 114 0 1 87 123 0 1 69 124 0 1 30 128 1 0 90 129 0 1 65 130 1 0 68 131 0 1 80 133 0 1 73 136 0 1 78 138 0 1 26 140 0 1 18 141 0 1 20 144 1 0 78 145 1 0 80 149 1 0 77 }}} |
Contrast vectors are given to mri_glmfit to specify the comparison you want to look at. They will be used in conjunction with the design matrix that was generated from your FSGD file. For instance, a contrast vector such as [1 0 0 0 ...] is used to examine the strength of the observed effect from the EV in the first design matrix column. Another contrast vector, [1 -1 0 0 ...], is used to compare the effects between the first two EVs in the design matrix. You can specify your contrast vector as a separate file, which will be read in by mri_glmfit, and used to test your hypotheses. For the example described [[FsTutorial/CorrectFsgdFile|here]] there were two classes (male, female) and one variable (age). The 3 regressors in the design matrix, when using DOSS, will be: |
| Line 51: | Line 10: |
| There are three regressors. The first regressor codes membership in the Male group. The second codes for membership in the Female group. The last is the age for the subject. The contrast vector for testing the given subjects for straight correlation between thickness and age can be specified as: {{{ [0 0 1] }}} The contrast vector has three components because there are three regressors. |
1. Intercept of Male <<BR>> 2. Intercept of Female <<BR>> 3. Age Slope <<BR>> |
| Line 57: | Line 14: |
| To use this in your mri_glmfit command create a file that contains just the one line of your contrast vector using the text editor of your choice. Again, using an appropriate naming convention is a good idea. This contrast vector has been created for you and is called '''age.mat'''. | Your contrast vector can be set up, using these regressors, to make any comparisons you'd want. If you wanted to compare the thickness differences between Males and Females, while regressing out age you could use a contrast vector [1 -1 0]. If you wanted to make a direct comparison between thickness and age, regardless of gender, you could use the contrast vector [0 0 1]. |
| Line 59: | Line 16: |
| Try constructing the contrast vector for testing the same data for difference between males and females independent of age. [[BR]] | If you are using DODS there will be 4 regressors in the design matrix: |
| Line 61: | Line 18: |
| [wiki:Self:FsTutorial/MaleFemaleContrastSolution Click here for the answer.] | 1. Intercept of Male <<BR>> 2. Intercept of Female <<BR>> 3. Age Slope (male) <<BR>> 4. Age Slope (female) <<BR>> Your contrast vector can be set up, using these regressors, to make any comparisons you'd want. If you wanted to compare the thickness differences between Males and Females, while regressing out age you could use a contrast vector [1 -1 0 0]. If you wanted to make a direct comparison between thickness and age between class, you could use the contrast vector [0 0 1 -1]. |
To follow this exercise exactly be sure you've downloaded the tutorial data set before you begin. If you choose not to download the data set you can follow these instructions on your own data, but you will have to substitute your own specific paths and subject names.
Specify contrast vectors to test hypotheses
Contrast vectors are given to mri_glmfit to specify the comparison you want to look at. They will be used in conjunction with the design matrix that was generated from your FSGD file. For instance, a contrast vector such as [1 0 0 0 ...] is used to examine the strength of the observed effect from the EV in the first design matrix column. Another contrast vector, [1 -1 0 0 ...], is used to compare the effects between the first two EVs in the design matrix. You can specify your contrast vector as a separate file, which will be read in by mri_glmfit, and used to test your hypotheses. For the example described here there were two classes (male, female) and one variable (age). The 3 regressors in the design matrix, when using DOSS, will be:
1. Intercept of Male
2. Intercept of Female
3. Age Slope
Your contrast vector can be set up, using these regressors, to make any comparisons you'd want. If you wanted to compare the thickness differences between Males and Females, while regressing out age you could use a contrast vector [1 -1 0]. If you wanted to make a direct comparison between thickness and age, regardless of gender, you could use the contrast vector [0 0 1].
If you are using DODS there will be 4 regressors in the design matrix:
1. Intercept of Male
2. Intercept of Female
3. Age Slope (male)
4. Age Slope (female)
Your contrast vector can be set up, using these regressors, to make any comparisons you'd want. If you wanted to compare the thickness differences between Males and Females, while regressing out age you could use a contrast vector [1 -1 0 0]. If you wanted to make a direct comparison between thickness and age between class, you could use the contrast vector [0 0 1 -1].
