Re: [Freesurfer] Bad design matrix

2015-03-03 Thread Douglas N Greve
I think just using DOSS instead of DODS will do it (--fsgd your.fsgd doss) On 03/03/2015 12:42 AM, Anders Hougaard wrote: Thanks Doug. Any suggestions for a more appropriate design? I guess this is a common situation where two or more parameters only apply to one group (in this case

Re: [Freesurfer] Bad design matrix

2015-03-02 Thread Anders Hougaard
Thanks Doug. Any suggestions for a more appropriate design? I guess this is a common situation where two or more parameters only apply to one group (in this case patients) and are zero or constant in the other. Best, Anders 2015-03-02 21:21 GMT+01:00 Douglas N Greve gr...@nmr.mgh.harvard.edu:

Re: [Freesurfer] Bad design matrix

2015-03-02 Thread Anders Hougaard
Dear Doug, Thanks for the answer. I deliberately chose not to demean. With demeaning I get the same error (see below). Any suggestions? Best, Anders Design matrix -- 1.000 0.000 -0.600 0.000 17.137 0.000; 1.000 0.000 -0.800 0.000 11.962 0.000; 1.000 0.000

Re: [Freesurfer] Bad design matrix

2015-03-02 Thread Douglas N Greve
It looks like the 4th column is always -0.9 and the 6th col is always -9.138 which makes them redundant with column 2 and causes the error. doug On 03/02/2015 03:16 PM, Anders Hougaard wrote: Dear Doug, Thanks for the answer. I deliberately chose not to demean. With demeaning I get the same

Re: [Freesurfer] Bad design matrix

2015-03-01 Thread Douglas Greve
Try demeaning your covariates. By demeaning, I mean to compute the mean across all subjects, then subtract the mean from all values (for each covariate). doug On 3/1/15 2:40 AM, Anders Hougaard wrote: Dear all, I'm comparing cortical thickness of a group of patients to a group of

[Freesurfer] Bad design matrix

2015-02-28 Thread Anders Hougaard
Dear all, I'm comparing cortical thickness of a group of patients to a group of controls. I want to regress out the effects of gender, age, disease severity and disease duration. For the controls, the last two parameters equals zero. When running mri_glmfit, i get ERROR: matrix is