Hi
 
refering to
 
http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/DesignMatrix
Design Matrices with DOSS and DODS I want to make an analysis of
same offset different slope between classes with a continuous age variable
 
If I was doing this with the example( 3 variables )
 
starting with
for dods
1  0  10  0   100   0   1000    0
1  0  15  0   150   0   1500    0
0  1  0   20   0   200   0    2000
0  1  0   25   0   250   0    2500
I would change to
for same offset different slope
1  10  0   100   0   1000    0
1  15  0   150   0   1500    0
1  0   20   0   200   0    2000
1  0   25   0   250   0    2500
 
 
for my example with 2 classes and one variable, age I would have.. for same offset different slope
 
a contrast vector [ 0 1 -1] in file sodsage.mat --direct comparison between thickness and age between class
 
and do glm_fit with my design in file Xgsods.dat
 
matrix of the form, 4 subj for brevity
 
1 n1 0
1 n2 0
1 0  n3
1 0  n4
 
 

mri_glmfit --y lh.sickle.thickness.10.mgh --glmdir lh.sickle_sodsage.glmdir

--surf SICKLECELLAVE lh --C sodsage.mat --X Xgsods.dat

 

 

did I get it correct ?

 

thanks

 

Greg.