Re: [Freesurfer] mri_glmfit ERROR: matrix is ill-conditioned or badly scaled -

2020-05-13 Thread Douglas N. Greve
This is a design problem that will not be solved by simply forcing glmfit to run. I would remove that class and those subjectgs On 5/13/2020 2:33 PM, Marina Fernández wrote: External Email - Use Caution Thank you, Doug. That makes sense. Do you think in this case it is a good option

Re: [Freesurfer] mri_glmfit ERROR: matrix is ill-conditioned or badly scaled -

2020-05-13 Thread Marina Fernández
External Email - Use Caution Thank you, Doug. That makes sense. Do you think in this case it is a good option to add the flag --illcond to run this analysis without getting an error? or is it better not to use the variable apoe in these statistical analyzes? What do you

Re: [Freesurfer] mri_glmfit ERROR: matrix is ill-conditioned or badly scaled -

2020-05-13 Thread Douglas N. Greve
The problem is that class 3 (smaleapoe) only has two members but you have four covariates. When you use DODS, each class gets its own fit to the data. In this case, class 3 is trying to solve for 5 unkowns (offset + 4 slopes) with only two data points. On 5/13/2020 10:18 AM, Marina Fernández

Re: [Freesurfer] mri_glmfit ERROR: matrix is ill-conditioned or badly scaled -

2020-05-13 Thread Marina Fernández
External Email - Use Caution Hi Douglas, I email you the fsgd file and I have also sent it through FTP. Thank you for your attention. Best regards, Marina. ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu

Re: [Freesurfer] mri_glmfit ERROR: matrix is ill-conditioned or badly scaled -

2020-05-12 Thread Douglas N. Greve
Can you email the fsgd file? On 5/12/2020 1:35 PM, Marina Fernández wrote: External Email - Use Caution Dear Freesurfer experts, I get the error that you can find at the end of this message when I am running mri_glmfit. Whenever I run an analysis in which the experimental design

[Freesurfer] mri_glmfit ERROR: matrix is ill-conditioned or badly scaled -

2020-05-12 Thread Marina Fernández
External Email - Use Caution Dear Freesurfer experts, I get the error that you can find at the end of this message when I am running mri_glmfit. Whenever I run an analysis in which the experimental design has more than 12 columns, I get the same error, whereas if the

Re: [Freesurfer] mri_glmfit error: Matrix is ill-conditioned or badly scaled

2016-07-18 Thread Douglas N Greve
It does not look like the variables are demeaned (your FSGD file below) Variables Age eTIV EnglishParityRT Input Math_5001m Monolingual_male 18 1865790.30866 -8952.208 Input Math_5002m Monolingual_female 19 1520429.68796 -4605.208 Input Math_5003m Monolingual_male 19 1749716.72939

Re: [Freesurfer] mri_glmfit error: Matrix is ill-conditioned or badly scaled

2016-07-18 Thread Jennifer Legault
Hi Doug, Thank you for your response. The current fsgd file I sent you was with the covariates demeaned x 100, as I saw you recommend that to someone else. We previously tried doing just the demeaned values without multiplying by 100, and that still had the badly scaled error. Do you think we

Re: [Freesurfer] mri_glmfit error: Matrix is ill-conditioned or badly scaled

2016-07-18 Thread Douglas N Greve
This is almost surely a problem with scaling as your covariates are huge. Try subtracting the mean and dividing by the stddev before entering into the FSGD file. Compute the means and stddevs across all subjects. doug On 07/11/2016 03:20 PM, Jennifer Legault wrote: > Hi Freesurfer Experts, > >

[Freesurfer] mri_glmfit error: Matrix is ill-conditioned or badly scaled

2016-07-11 Thread Jennifer Legault
Hi Freesurfer Experts, I am trying to run mri_glmfit and while 90% of my files work, some of them display the error below. I have tried demeaning, and then tried multiplying this value by 100, and I still get the same error. Any feedback would be greatly appreciated. mris_preproc done

Re: [Freesurfer] mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08

2014-12-12 Thread lindsay hanford
Hi Doug! Thank you very much for your reply. I made the fsgd file in a plain-text file using the textedit program on a Mac and when that didn't work I tried modifying in the terminal window using: nano -w g4v1.73.fsgd. This also didn't solve the problem. I am not sure what to try next. Lindsay

Re: [Freesurfer] mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08

2014-12-12 Thread Douglas N Greve
The file I looked at had a bunch of carriage returns (try looking at it with more or less or cat). As long as those are in there, it will create an error. Try running this and using the new one cat g4v1.73.fsgd | sed 's/\r/\n/g' new.g4v1.73.fsgd On 12/12/2014 12:09 PM, lindsay hanford wrote:

Re: [Freesurfer] mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08

2014-12-12 Thread lindsay hanford
Thank you Doug! I replaced all my spaces with new spaces and it worked! Much appreciated! Lindsay On Fri, Dec 12, 2014 at 12:09 PM, lindsay hanford lindsay.hanf...@gmail.com wrote: Hi Doug! Thank you very much for your reply. I made the fsgd file in a plain-text file using the textedit

Re: [Freesurfer] mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08

2014-12-11 Thread lindsay hanford
Hello, Has anyone had a chance to look at this? I still haven't been able to solve the problem. Thanks! Lindsay On Mon, Dec 1, 2014 at 2:41 PM, lindsay hanford lindsay.hanf...@gmail.com wrote: Hello Freesurfer Experts! I am encountering the dreaded mri_glmfit error: matrix is

Re: [Freesurfer] mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08

2014-12-11 Thread Douglas N Greve
Your FSGD file appears to have been made under windows or using an editor that is not simple text. The contrast matrix looks ok. doug On 12/01/2014 02:41 PM, lindsay hanford wrote: Hello Freesurfer Experts! I am encountering the dreaded mri_glmfit error: matrix is ill-conditioned or

[Freesurfer] mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08

2014-12-01 Thread lindsay hanford
Hello Freesurfer Experts! I am encountering the dreaded mri_glmfit error: matrix is ill-conditioned or badly scaled, condno = 1e+08. I have tried to troubleshoot how to solve this problem from other inquiries, however, I still have had no luck. I am trying to run a 4 group 1 variable analysis: