Original question:
After running the permutation and finding significant clusters, I am trying to calculate the value for each participant for these significant clusters.
The perm.th30.abs.y.ocn.dat contain the raw values, and I am trying to get the adjusted values accounting for age, sex, and ICV (this is a three group design). What would be the best way of calculating that?
Your response:
There
is not an easy way to do it, but you can do it in matlab
cd
glmdir
X
= load('Xg.dat');
y
= load('perm.th30.abs.y.ocn.dat');
beta
= inv(X'*X)*X'*y;
yhat
= X(:,[i j k ...]*beta([i j k ...])
where
i j k ... indicate the factors you want keep in your data. Each
factor
gets a column in the design matrix (and a beta). If you need help
figuring
this out, send the fsgd file.