Try normalizing your covariates (ie, subtract the mean and divide by the stddev).


On 9/28/16 3:07 PM, kinson li wrote:
Hi there, 

Anyone can help me out?  Thank you. 

2016-09-28 13:46 GMT-04:00 kinson li <kinsonljc@gmail.com>:

Hello,

I would like to conduct an analysis using mri_glmfit but I'm getting this error:

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

I am appreciated you can help me solve this problem. 

My command was:

mri_glmfit --y age9vs8ml01.mgh --fsgd new.fsgd dods --C age9vs8mlmatrix.mtx --surf fsaverage lh --cortex  --glmdir glmdir.age9vs8ml


Design matrix ------------------

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 1.000   0.000   8.000   0.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

 0.000   1.000   0.000   9.000;

--------------------------------

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

--------------------------------


Thanks 

Jincheng.





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