Try removing the mean from the age. By this I mean to compute the mean 
age over all subjects regardless of group, then subtract the mean from 
all ages.
doug

On 07/29/2014 02:39 PM, Jon Alan Wieser wrote:
>
> I'm getting the following erorr when running Qdec "Analyze"
>
> Model Factors:
>
>
> Discrete (fixed factors)
>
>  ADHD_Persist
>
>   MJ_group
>
>  Nuisance factor:
>
>  Age
>
>
> ERROR: matrix is ill-conditioned or badly scaled, condno = 10355.4
> --------------------------------
> 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 /Studies/MTA/qdec/MTA_persistanceCD/y.mgh --fsgd 
> /Studies/MTA/qdec/MTA_persistanceCD/qdec.fsgd dods --glmdir 
> /Studies/MTA/qdec/MTA_persistanceCD --surf fsaverage rh --label 
> /Studies/MTA/fsaverage/label/rh.aparc.label --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Avg-Intercept-thickness.mat 
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Diff-C-D-Intercept-thickness.mat
>  
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Diff-Control-MJuser-Intercept-thickness.mat
>  
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-X-ADHD_Persist-MJ_group-Intercept-thickness.mat
>   2. The FSGD file (if using one)
>   3. And the design matrix above
> Error in Analyze: command failed: mri_glmfit --y 
> /Studies/MTA/qdec/MTA_persistanceCD/y.mgh --fsgd 
> /Studies/MTA/qdec/MTA_persistanceCD/qdec.fsgd dods --glmdir 
> /Studies/MTA/qdec/MTA_persistanceCD --surf fsaverage rh --label 
> /Studies/MTA/fsaverage/label/rh.aparc.label --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Avg-Intercept-thickness.mat 
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Diff-C-D-Intercept-thickness.mat
>  
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Diff-Control-MJuser-Intercept-thickness.mat
>  
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-X-ADHD_Persist-MJ_group-Intercept-thickness.mat
>
>
>
>
>
> command line:
>
>  mri_glmfit --y /Studies/MTA/qdec/MTA_persistanceCD/y.mgh --fsgd 
> /Studies/MTA/qdec/MTA_persistanceCD/qdec.fsgd dods --glmdir 
> /Studies/MTA/qdec/MTA_persistanceCD --surf fsaverage rh --label 
> /Studies/MTA/fsaverage/label/rh.aparc.label --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Avg-Intercept-thickness.mat 
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Diff-C-D-Intercept-thickness.mat
>  
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-Diff-Control-MJuser-Intercept-thickness.mat
>  
> --C 
> /Studies/MTA/qdec/MTA_persistanceCD/contrasts/rh-X-ADHD_Persist-MJ_group-Intercept-thickness.mat
>
>
>
> no FSGD file
>
>
> I have attached the qdec dat file
>
>
>
>
> design matrix:
>
> Design matrix ------------------
>  1.000   0.000   0.000   0.000   25.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   24.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   22.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   24.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   25.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   21.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   21.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   25.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   23.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   26.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   23.000   0.000;
>  1.000   0.000   0.000   0.000   24.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   25.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   22.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   21.000   0.000;
>  1.000   0.000   0.000   0.000   25.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   24.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   23.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   23.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   26.000   0.000;
>  1.000   0.000   0.000   0.000   24.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   25.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   23.000   0.000;
>  1.000   0.000   0.000   0.000   27.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   24.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   24.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   23.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   21.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   25.000   0.000;
>  1.000   0.000   0.000   0.000   24.000   0.000   0.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   24.000   0.000;
>  0.000   0.000   1.000   0.000   0.000   0.000   23.000   0.000;
>  1.000   0.000   0.000   0.000   23.000   0.000   0.000   0.000;
>  1.000   0.000   0.000   0.000   21.000   0.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   25.000;
>  0.000   1.000   0.000   0.000   0.000   24.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   25.000;
>  0.000   1.000   0.000   0.000   0.000   24.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   24.000;
>  0.000   1.000   0.000   0.000   0.000   22.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   27.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   26.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   24.000;
>  0.000   1.000   0.000   0.000   0.000   23.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   25.000;
>  0.000   1.000   0.000   0.000   0.000   26.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   25.000;
>  0.000   1.000   0.000   0.000   0.000   26.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   25.000   0.000   0.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   25.000;
>  0.000   0.000   0.000   1.000   0.000   0.000   0.000   24.000;
>  0.000   1.000   0.000   0.000   0.000   24.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   26.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   24.000   0.000   0.000;
>  0.000   1.000   0.000   0.000   0.000   24.000   0.000   0.000;
>
>
>
> _______________________________________________
> Freesurfer mailing list
> [email protected]
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
[email protected]
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
[email protected]
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