That looks correct. You can also checkout the instructions here:

https://surfer.nmr.mgh.harvard.edu/fswiki/PairedAnalysis


On 9/17/17 6:07 PM, stdp82@virgilio.it wrote:
Hi list,

I'm not sure that the files reported below are correct to assess the longitudinal difference between T1 and T2.
Please, could you check it? The result which I have obtained bu running mri_glmfit is too strange.
Thanks
Best regards
Stefano

1) PAIRWISE.fsgd file
-------------------
GroupDescriptorFile 1
Class subj1
Class subj2
...
Class subjN
Variables TP1-vs-TP2
Input subj1_tp1 subj1 1
Input subj1_tp2 subj1 -1
Input subj2_tp1 subj2 1
Input subj2_tp2 subj2 -1
...
Input subjN_tp1 subjN 1
Input subjN_tp2 subjN -1
----------------------------

2) mean.mtx
1 1 ... 1 0
------------------------------
3) tp-effect.mtx
0 0 ... 0 1
------------------------------
4) mri_glmfit --glmdir PAIRWISE --y ces.nii.gz --wls cesvar.nii.gz --surface fsaverage rh --nii.gz --fsgd PAIRWISE.fsgd doss --C mean.mtx --C tp-effect.mtx


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer