Try demeaning each covariate. Do so with respect to the mean across all 
subjects and not within group.
doug

On 01/15/2015 08:02 AM, 이현아 wrote:
> /Hello/
> /I’m trying to do an group analysis using mir_glmfit but I met this error./
> ERROR: matrix is ill-conditioned or badly scaled, condno = 165279
>
> 1. my command line was
>
> mri_glmfit --y lh.age_edu.thickness.10b.mgh --fsgd age_edu.fsgd --C 
> C_age.edu.mtx --surf fsaverage lh --cortex --glmdir lh.age_edu.glmdir
>
> 2. I attached the fsgd file, which was made in edit. It contains 1 
> class (2 levels) and 2 variables (age & education)
>
> 3. contrast is ‘-1 1 0 0 0 0’
> 4. design matrix is like below
> Design matrix ------------------
>  1.000   0.000   74.000   0.000 14.000   0.000;
>  1.000   0.000   70.000   0.000 12.000   0.000;
>  1.000   0.000   73.000   0.000 6.000   0.000;
>  1.000   0.000   84.000   0.000 15.000   0.000;
>  0.000   1.000   0.000   60.000 0.000   12.000;
>  0.000   1.000   0.000   59.000 0.000   12.000;
>  0.000   1.000   0.000   63.000 0.000   9.000;
>  0.000   1.000   0.000   60.000 0.000   12.000;
> --------------------------------
> ERROR: matrix is ill-conditioned or badly scaled, condno = 164365
>
> Possible problem with experimental design:
> Check for duplicate entries and/or lack of range of
> continuous variables within a class.
> If you seek help with this problem, make sure to send:
>   1. Your command line:
>     mri_glmfit --y lh.age_edu.thickness.10b.mgh --fsgd age_edu.fsgd 
> --C C_age.edu.mtx --surf fsaverage lh --cortex --glmdir lh.age_edu.glmdir
>   2. The FSGD file (if using one)
>   3. And the design matrix above
>
>
>
> thanks,
>
> H.A. LEE
>
>
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to