Try normalizing your continuous variables (ie, subtract the mean and 
divide by the stddev)

On 07/28/2016 06:06 AM, Mahtab Farahbakhsh wrote:
> Dear FreeSurfer,
>
> I am trying to compare my subjects to the healthy group, but when I 
> put the matrix into qdec, I get the following error:
>
> Normalized matrix condition is 1e+08
> Design matrix ------------------
>  1.000   0.000   0.000   0.000   68.000   0.000   0.000 0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   66.000 0.000;
>  1.000   0.000   0.000   0.000   40.000   0.000   0.000 0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   35.000 0.000;
>  1.000   0.000   0.000   0.000   72.000   0.000   0.000 0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   71.000 0.000;
>  1.000   0.000   0.000   0.000   22.000   0.000   0.000 0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   22.000 0.000;
>  0.000   1.000   0.000   0.000   0.000   20.000   0.000 0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000 20.000;
> --------------------------------
> ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08
>
>
>   1. Your command line:
>     mri_glmfit --y 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/y.mgh
>  
> --fsgd 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/qdec.fsgd
>  
> dods --glmdir 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled 
> --surf fsaverage lh --label 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/fsaverage/label/lh.aparc.label
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-Avg-thickness-age-Cor.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-Diff-Male-Female-Intercept-thickness.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-Diff-Male-Female-Cor-thickness-age.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-Diff-spelling-healthy-Intercept-thickness.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-Diff-spelling-healthy-Cor-thickness-age.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-X-gender2-diagnosis_spelling-Intercept-thickness.mat
>  
> --C 
> /Applications/freesurfer/experimental_data/FAM_TG/DICOM_DATA/qdec/Untitled/contrasts/lh-X-gender2-diagnosis_spelling-Cor-thickness-age.mat
>  
>
>
>
>
> the table file is also attached to the mail.
>
> Would you please kindly guide me with this?
>
> Best Regards,
> Mahtab.
>
>
>
> _______________________________________________
> 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