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

2021-01-14 Thread Greve, Douglas N.,Ph.D.
NaN will not work for this. You can't do incomplete designs with an FSGD. You 
can create your own design matrix and pass it with --X, otherwise you'll have 
to exclude those subjects or put some reasonable (eg, imputed) value

On 1/12/2021 6:35 PM, Julie Ottoy wrote:

External Email - Use Caution

Hi freesurfer experts,

I am trying to run a GLM fit between cortical thickness and some other 
continuous marker. My cortical thickness were stacked before using the 
mris_preproc and surf2surf commands.
I have an FSGD file with the same subjects as used during the stacking of the 
thickness maps, but I added a new continuous regressor (my independent variable 
of interest). However, some subjects have a missing value for this regressor, 
so I added NaN. This makes me run into the following error. When I replace the 
NaN values by random numbers in the FSGD, it all runs fine.

M = [ ...
 1.0  0.99577  0.70711  0.98278  0.97547 -0.97111  nan
 0.99577  1.0  0.70628  0.97775  0.97819 -0.95833  nan
 0.70711  0.70628  1.0  0.68252  0.70488 -0.70032  nan
 0.98278  0.97775  0.68252  1.0  0.95399 -0.96466  nan
 0.97547  0.97819  0.70488  0.95399  1.0 -0.92863  nan
-0.97111 -0.95833 -0.70032 -0.96466 -0.92863  1.0  nan
 nan  nan  nan  nan  nan  nan  nan  ]
Normalized matrix condition is 1e+08
Design matrix --

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

Possible problem with experimental design:
Check for duplicate entries and/or lack of range of
continuous variables within a class.


I made sure that my FSGD file does not have any weird characters, so i applied 
the cat fsgd.txt | sed 's/\r/\n/g' > new.fsgd.txt, but this also didn't help.

Thank you for your help,
Julie





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

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

[Freesurfer] matrix is ill-conditioned or badly scaled

2021-01-12 Thread Julie Ottoy
External Email - Use Caution

Hi freesurfer experts,

I am trying to run a GLM fit between cortical thickness and some other
continuous marker. My cortical thickness were stacked before using the
mris_preproc and surf2surf commands.
I have an FSGD file with the same subjects as used during the stacking of
the thickness maps, but I added a new continuous regressor (my independent
variable of interest). However, some subjects have a missing value for this
regressor, so I added NaN. This makes me run into the following error. When
I replace the NaN values by random numbers in the FSGD, it all runs fine.

M = [ ...
 1.0  0.99577  0.70711  0.98278  0.97547 -0.97111  nan
 0.99577  1.0  0.70628  0.97775  0.97819 -0.95833  nan
 0.70711  0.70628  1.0  0.68252  0.70488 -0.70032  nan
 0.98278  0.97775  0.68252  1.0  0.95399 -0.96466  nan
 0.97547  0.97819  0.70488  0.95399  1.0 -0.92863  nan
-0.97111 -0.95833 -0.70032 -0.96466 -0.92863  1.0  nan
 nan  nan  nan  nan  nan  nan  nan  ]
Normalized matrix condition is 1e+08
Design matrix --

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

Possible problem with experimental design:
Check for duplicate entries and/or lack of range of
continuous variables within a class.


I made sure that my FSGD file does not have any weird characters, so i
applied the cat fsgd.txt | sed 's/\r/\n/g' > new.fsgd.txt, but this also
didn't help.

Thank you for your help,
Julie
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

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

2019-10-30 Thread Greve, Douglas N.,Ph.D.
The problem is that some of your groups are very small, eg, groups 2 and 
4 only have 3 subjects. The way you have it set up, there are four 
parameters (offset and 3 slopes) for each group. Thus, you are running 
out of DOFs for those two groups (and not so much better on some of the 
others).

On 10/30/19 1:11 PM, Benjamin Ineichen wrote:
>
> External Email - Use Caution
>
> Hi,
> I am having trouble with the mri_glmfit with the following 
> error message and I was not able to find a solution on the mail archive:
>
> ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08
>
> 
>
> 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.bin --y NFLclasscov.thickness.00.mgh --fsgd GLM4.fsgd.txt 
> dods --C contrast4.mtx.txt --surf fsaverage lh --cortex --glmdir 
> NFLclasscov.glmdir
>
> 2. The FSGD file (if using one)
>
> 3. And the design matrix above
>
> Attempting to diagnose further
>
> SumSq: Min=0.383673 (col 10), Max=7.173570 (col 15)
>
>  The scale is much different between columns 10 and 15, you may want to
>
>  normalize by subtracting the mean and dividing by the standard deviation.
>
>
> I get this error with both the non-demeaned and demeaned FSGD file (as 
> suggested at the end of the error message). Both the non-demeaned 
> (GLM3) and the demeaned FSGD files (GLM4) are attached, contrast file 
> attached. Not sure if you also need the design matrix depicted in the 
> command line, it would be at the end of the email.
>
> My questions:
> 1.) Do you see where the problem is?
> 2.) Would the contrast be correct for testing cortical thickness 
> between NFL-low and NFL-high.
>
> Many thanks for your support!
>
> Best regards,
> Ben
>
>
> Design matrix --
>
>  1.0   0.0   0.0   0.0   0.0   0.0 0.0   
> 0.0   1.21322   0.0   0.0 0.0   0.0   0.0   
> 0.0   0.0 -0.47975   0.0   0.0   0.0   0.0 
> 0.0   0.0   0.0  -0.07738   0.0 0.0   0.0   
> 0.0   0.0   0.0 0.0;
>
>  1.0   0.0   0.0   0.0   0.0   0.0 0.0   
> 0.0   0.90977   0.0   0.0 0.0   0.0   0.0   
> 0.0   0.0 3.25685   0.0   0.0   0.0   0.0 
> 0.0   0.0   0.0  -0.50014   0.0 0.0   0.0   
> 0.0   0.0   0.0 0.0;
>
>  0.0   0.0   0.0   0.0   1.0   0.0 0.0   
> 0.0   0.0   0.0   0.0 0.0   0.60709   0.0   
> 0.0   0.0 0.0   0.0   0.0   0.0   3.37385 
> 0.0   0.0   0.0   0.0   0.0 0.0   0.0  
> -0.50755   0.0   0.0 0.0;
>
>  1.0   0.0   0.0   0.0   0.0   0.0 0.0   
> 0.0   0.58764   0.0   0.0 0.0   0.0   0.0   
> 0.0   0.0 3.24083   0.0   0.0   0.0   0.0 
> 0.0   0.0   0.0  -0.15618   0.0 0.0   0.0   
> 0.0   0.0   0.0 0.0;
>
>  0.0   0.0   0.0   0.0   1.0   0.0 0.0   
> 0.0   0.0   0.0   0.0 0.0   0.40956   0.0   
> 0.0   0.0 0.0   0.0   0.0   0.0  -0.45256 
> 0.0   0.0   0.0   0.0   0.0 0.0   0.0  
> -0.69853   0.0   0.0 0.0;
>
>  0.0   0.0   0.0   0.0   1.0   0.0 0.0   
> 0.0   0.0   0.0   0.0 0.0   0.43975   0.0   
> 0.0   0.0 0.0   0.0   0.0   0.0  -0.62150 
> 0.0   0.0   0.0   0.0   0.0 0.0   0.0  
> -0.47325   0.0   0.0 0.0;
>
>  0.0   0.0   0.0   0.0   1.0   0.0 0.0   
> 0.0   0.0   0.0   0.0 0.0   0.54849   0.0   
> 0.0   0.0 0.0   0.0   0.0   0.0   1.80338 
> 0.0   0.0   0.0   0.0   0.0 0.0   0.0  
> -0.17658   0.0   0.0 0.0;
>
>  0.0   0.0   0.0   0.0   1.0   0.0 0.0   
> 0.0   0.0   0.0   0.0 0.0   0.47864   0.0   
> 0.0   0.0 0.0   0.0   0.0   0.0  -0.12973 
> 0.0   0.0   0.0   0.0   0.0 0.0   0.0  
> -0.37312   0.0   0.0 0.0;
>
>  1.0   0.0   0.0   0.0   0.0   0.0 0.0   
> 0.0   0.17109   0.0   0.0 0.0   0.0   0.0   
> 0.0   0.0 0.09941   0.0   0.0   0.0   0.0 
> 0.0   0.0   0.0  -0.60490   0.0 0.0   0.0   
> 0.0   0.0   0.0 0.0;
>
>  0.0   0.0   0.0   0.0   1.0   0.0 0.0   
> 0.0   0.0   0.0   0.0 0.0   0.13348   

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

2019-03-07 Thread Arsenije Subotic
External Email - Use Caution

Hi Doug,

I realized this error a couple of days ago and now it works.

Thank you,
Arsenije


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


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

2019-03-06 Thread Greve, Douglas N.,Ph.D.
Your FSGD file is incorrect in several ways. Under "variables" you have 
"Sex" and list "Male" and "Female". The variables must be numbers, not 
strings. The variables should also represent continuous quantities, not 
categories. To handle sex, you should have a total of 6 categories, the 
3 that you have divided into male an female.

On 3/5/19 12:51 PM, Arsenije Subotic wrote:
>
> External Email - Use Caution
>
> Hi,
>
> I am still struggling to examine differences in thickness using the 
> command line stream for my two groups after controlling for age and 
> sex. I get the following error when running the command line:
>
> ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08
> 
> 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.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd
> CAA_CTRL_RH_Age_Sex.fsgd --C Contrasts/CAA-CTRL_Age_Sex.mtx --surf fsaverage 
> rh
> --cortex --glmdir CAA_CTRL_RH_Age_Sex_Unix.glmdir
>2. The FSGD file (if using one)
>3. And the design matrix above
> Attempting to diagnose further
> SumSq: Min=0.00 (col 5), Max=611.699463 (col 4)
>   The scale is much different between columns 5 and 4, you may want to
>   normalize by subtracting the mean and dividing by the standard deviation.
> Column 5,  all values are 0
> Column 6,  all values are 0
> Columns 5 and 6 are the same
>
>
>
> My design matrix is:
> 1 -1 0 0 0 0 (Examining difference in thickness after controlling for effects
> of age and sex)
>
> I’ve also attached the FSGD file that I’ve been using. Please let 
> me know if there is something wrong with the file (although I have 
> used a similar file without the covariates and did not have any issues).
>
> Thanks!
> Arsenije
> ---
> *Arsenije Subotic*| MSc Student
> Department of Clinical Neurosciences
> Hotchkiss Brain Institute, University of Calgary | T2N 4N1, Canada
> Tel: (403) 918-6970
> arsenije.subot...@ucalgary.ca 
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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

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

2019-03-05 Thread Arsenije Subotic
External Email - Use Caution

Hi,

I am still struggling to examine differences in thickness using the command 
line stream for my two groups after controlling for age and sex. I get the 
following error when running the command line:


ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

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.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd
CAA_CTRL_RH_Age_Sex.fsgd --C Contrasts/CAA-CTRL_Age_Sex.mtx --surf fsaverage rh
--cortex --glmdir CAA_CTRL_RH_Age_Sex_Unix.glmdir
  2. The FSGD file (if using one)
  3. And the design matrix above
Attempting to diagnose further
SumSq: Min=0.00 (col 5), Max=611.699463 (col 4)
 The scale is much different between columns 5 and 4, you may want to
 normalize by subtracting the mean and dividing by the standard deviation.
Column 5,  all values are 0
Column 6,  all values are 0
Columns 5 and 6 are the same




My design matrix is:
1 -1 0 0 0 0 (Examining difference in thickness after controlling for effects
of age and sex)

I’ve also attached the FSGD file that I’ve been using. Please let me know 
if there is something wrong with the file (although I have used a similar file 
without the covariates and did not have any issues).

Thanks!
Arsenije
---
Arsenije Subotic | MSc Student
Department of Clinical Neurosciences
Hotchkiss Brain Institute, University of Calgary | T2N 4N1, Canada
Tel: (403) 918-6970
arsenije.subot...@ucalgary.ca



CAA_CTRL_RH_Age_Sex.fsgd
Description: CAA_CTRL_RH_Age_Sex.fsgd
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

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

2019-03-01 Thread Arsenije Subotic
External Email - Use Caution

Hi Doug,


This is the bulk of the text I wrote initially in my first email:


Dear experts,

I have recently tried to use the command line to examine thickness differences 
between two groups after controlling for the effects of age and sex. I get the 
following error :

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

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.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd 
CAA_CTRL_RH_Age_Sex.fsgd --C Contrasts/CAA-CTRL_Age_Sex.mtx --surf fsaverage rh 
--cortex --glmdir CAA_CTRL_RH_Age_Sex_Unix.glmdir
  2. The FSGD file (if using one)
  3. And the design matrix above
Attempting to diagnose further
SumSq: Min=0.00 (col 5), Max=611.699463 (col 4)
 The scale is much different between columns 5 and 4, you may want to
 normalize by subtracting the mean and dividing by the standard deviation.
Column 5,  all values are 0
Column 6,  all values are 0
Columns 5 and 6 are the same

I did not get this error when I was only looking at the difference in thickness 
between the two groups, so I am guessing there is not an issue with the file 
format? Looking at the log, does this mean that I also need to demean the age 
variable? I was planning on running some contrasts looking at the interactions 
between group and age after controlling for sex etc. in order to see if I 
should go with a DOSS approach, but using those contrasts still gives me the 
same error.


Thanks,

Arsenije


---

Arsenije Subotic | MSc Student

Department of Clinical Neurosciences

Hotchkiss Brain Institute, University of Calgary | T2N 4N1, Canada

Tel: (403) 918-6970

arsenije.subot...@ucalgary.ca

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

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

2019-03-01 Thread Greve, Douglas N.,Ph.D.
sorry, can you also include the previous emails so I know what the context is?

On 3/1/19 1:02 PM, Arsenije Subotic wrote:

External Email - Use Caution

Hi Doug,

Thank you for your reply.

My command was:
mri_glmfit.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd CAA_CTRL_RH_Age_Sex.fsgd 
--C Contrasts/CAA-CTRL_Age_Sex.mtx --surf fsaverage rh --cortex --glmdir 
CAA_CTRL_RH_Age_Sex_Unix.glmdir

My FSGD file is attached. It contains 2 classes and two covariates (Age and 
Sex).

My design matrix is:
1 -1 0 0 0 0 (Examining difference in thickness after controlling for effects 
of age and sex)
Please let me know what the issue is.

Best,
Arsenije



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

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

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

2019-03-01 Thread Arsenije Subotic
External Email - Use Caution

Hi Doug,

Thank you for your reply.

My command was:
mri_glmfit.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd CAA_CTRL_RH_Age_Sex.fsgd 
--C Contrasts/CAA-CTRL_Age_Sex.mtx --surf fsaverage rh --cortex --glmdir 
CAA_CTRL_RH_Age_Sex_Unix.glmdir

My FSGD file is attached. It contains 2 classes and two covariates (Age and 
Sex).

My design matrix is:
1 -1 0 0 0 0 (Examining difference in thickness after controlling for effects 
of age and sex)
Please let me know what the issue is.

Best,
Arsenije


CAA_CTRL_RH_Age_Sex.fsgd
Description: CAA_CTRL_RH_Age_Sex.fsgd
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

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

2019-02-28 Thread Greve, Douglas N.,Ph.D.
Did you see the line "If you seek help with this problem, make sure to 
send:" and then it lists some things to send

On 2/25/19 2:13 PM, Arsenije Subotic wrote:
>
> External Email - Use Caution
>
> Dear experts,
>
> I have recently tried to use the command line to examine thickness 
> differences between two groups after controlling for the effects of 
> age and sex. I get the following error :
>
> ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08
> 
> 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.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd 
> CAA_CTRL_RH_Age_Sex.fsgd --C Contrasts/CAA-CTRL_Age_Sex.mtx --surf 
> fsaverage rh --cortex --glmdir CAA_CTRL_RH_Age_Sex_Unix.glmdir
>   2. The FSGD file (if using one)
>   3. And the design matrix above
> Attempting to diagnose further
> SumSq: Min=0.00 (col 5), Max=611.699463 (col 4)
>  The scale is much different between columns 5 and 4, you may want to
>  normalize by subtracting the mean and dividing by the standard deviation.
> Column 5,  all values are 0
> Column 6,  all values are 0
> Columns 5 and 6 are the same
>
> I did not get this error when I was only looking at the difference in 
> thickness between the two groups, so I am guessing there is not an 
> issue with the file format? Looking at the log, does this mean that I 
> also need to demean the age variable? I was planning on running some 
> contrasts looking at the interactions between group and age after 
> controlling for sex etc. in order to see if I should go with a DOSS 
> approach, but using those contrasts still gives me the same error.
>
> Thanks for your help!
>
> Best,
> Arsenije
> ---
> *Arsenije Subotic*| MSc Student
> Department of Clinical Neurosciences
> Hotchkiss Brain Institute, University of Calgary | T2N 4N1, Canada
> Tel: (403) 918-6970
> arsenije.subot...@ucalgary.ca 
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


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

2019-02-25 Thread Arsenije Subotic
External Email - Use Caution

Dear experts,

I have recently tried to use the command line to examine thickness differences 
between two groups after controlling for the effects of age and sex. I get the 
following error :

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

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.bin --y CAA_CTRL_RH.thickness.10.mgh --fsgd 
CAA_CTRL_RH_Age_Sex.fsgd --C Contrasts/CAA-CTRL_Age_Sex.mtx --surf fsaverage rh 
--cortex --glmdir CAA_CTRL_RH_Age_Sex_Unix.glmdir
  2. The FSGD file (if using one)
  3. And the design matrix above
Attempting to diagnose further
SumSq: Min=0.00 (col 5), Max=611.699463 (col 4)
 The scale is much different between columns 5 and 4, you may want to
 normalize by subtracting the mean and dividing by the standard deviation.
Column 5,  all values are 0
Column 6,  all values are 0
Columns 5 and 6 are the same

I did not get this error when I was only looking at the difference in thickness 
between the two groups, so I am guessing there is not an issue with the file 
format? Looking at the log, does this mean that I also need to demean the age 
variable? I was planning on running some contrasts looking at the interactions 
between group and age after controlling for sex etc. in order to see if I 
should go with a DOSS approach, but using those contrasts still gives me the 
same error.

Thanks for your help!

Best,
Arsenije
---
Arsenije Subotic | MSc Student
Department of Clinical Neurosciences
Hotchkiss Brain Institute, University of Calgary | T2N 4N1, Canada
Tel: (403) 918-6970
arsenije.subot...@ucalgary.ca

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

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

2017-03-16 Thread Douglas N Greve
You have commas (ie, ",") instead of decimal points (ie, ".") in your 
fsgd file. Try replacing them and see if that works


On 03/16/2017 08:59 AM, teodora petrova wrote:
> Hello,
>
> I am trying to use the glm_fit to correlate a continuous variable 
> (index) with cortical thickness, when controlling for age, education, 
> and cognition (MMSE) (all continuous variables). However, I get the 
> following error:
>
> 
> ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08
> 
> 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.index.thickness.10.mgh --fsgd index.fsgd dods 
> --C index.mtx --surf fsaverage lh --cortex --glmdir lh.index.glmdir
>   2. The FSGD file (if using one)
>   3. And the design matrix above
>
> Please find attached my fsgd file and the design matrix.
> I searched the archives and found out that a possible reason for this 
> may be creating my file in Windows. Indeed, I created it by 
> copy-pasting the data from an Excel spreadsheet into an empty txt 
> file. I tried to convert it on Linux, using the command old.fsgd | sed 
> 's/\r/\n/g' > new.fsgd, as well as making a new txt file on Linux (by 
> copy -paste from a spreadsheet), but these did not work either.  How 
> can I solve this?
>
> Thank you for the help!
>
> Best,
> Teodora
>
>
>
>
> ___
> 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.



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

2017-03-16 Thread teodora petrova
Hello, 

I am trying to use the glm_fit to correlate a continuous variable (index) with 
cortical thickness, when controlling for age, education, and cognition (MMSE) 
(all continuous variables). However, I get the following error:


ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

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.index.thickness.10.mgh --fsgd index.fsgd dods --C 
index.mtx --surf fsaverage lh --cortex --glmdir lh.index.glmdir 
  2. The FSGD file (if using one)
  3. And the design matrix above
Please find attached my fsgd file and the design matrix. 
I searched the archives and found out that a possible reason for this may be 
creating my file in Windows. Indeed, I created it by copy-pasting the data from 
an Excel spreadsheet into an empty txt file. I tried to convert it on Linux, 
using the command old.fsgd | sed 's/\r/\n/g' > new.fsgd, as well as making a 
new txt file on Linux (by copy -paste from a spreadsheet), but these did not 
work either.  How can I solve this?

Thank you for the help! 

Best,
Teodora


Design matrix --
 1.000   57.000   0.000   0.000   0.000;
 1.000   104.000   0.000   0.000   0.000;
 1.000   95.000   0.000   0.000   0.000;
 1.000   81.000   0.000   0.000   0.000;
 1.000   73.000   0.000   0.000   0.000;
 1.000   37.000   0.000   0.000   0.000;
 1.000   75.000   0.000   0.000   0.000;
 1.000   60.000   0.000   0.000   0.000;
 1.000   36.000   0.000   0.000   0.000;
 1.000   83.000   0.000   0.000   0.000;
 1.000   68.000   76.000   0.000   0.000;
 1.000   100.000   0.000   0.000   0.000;
 1.000   82.000   0.000   0.000   0.000;
 1.000   79.000   0.000   0.000   0.000;
 1.000   112.000   0.000   0.000   0.000;
 1.000   112.000   0.000   0.000   0.000;
 1.000   74.000   0.000   0.000   0.000;
 1.000   82.000   0.000   0.000   0.000;
 1.000   85.000   0.000   0.000   0.000;
 1.000   51.000   0.000   0.000   0.000;
 1.000   106.000   0.000   0.000   0.000;
 1.000   72.000   0.000   0.000   0.000;
 1.000   70.000   0.000   0.000   0.000;
 1.000   83.000   0.000   0.000   0.000;
 1.000   67.000   0.000   0.000   0.000;
 1.000   121.000   0.000   0.000   0.000;
 1.000   96.000   0.000   0.000   0.000;
 1.000   124.000   0.000   0.000   0.000;
 1.000   92.000   0.000   0.000   0.000;
 1.000   48.000   0.000   0.000   0.000;
 1.000   50.000   0.000   0.000   0.000;
 1.000   51.000   0.000   0.000   0.000;
 1.000   130.000   0.000   0.000   0.000;
 1.000   103.000   0.000   0.000   0.000;
 1.000   129.000   0.000   0.000   0.000;
 1.000   95.000   0.000   0.000   0.000;
 1.000   64.000   0.000   0.000   0.000;
 1.000   102.000   0.000   0.000   0.000;
 1.000   95.000   0.000   0.000   0.000;
 1.000   127.000   0.000   0.000   0.000;
 1.000   98.000   0.000   0.000   0.000;
 1.000   74.000   0.000   0.000   0.000;
 1.000   95.000   0.000   0.000   0.000;
 1.000   130.000   0.000   0.000   0.000;
 1.000   105.000   0.000   0.000   0.000;
 1.000   124.000   0.000   0.000   0.000;
 1.000   46.000   0.000   0.000   0.000;
 1.000   77.000   0.000   0.000   0.000;
 1.000   117.000   0.000   0.000   0.000;
 1.000   134.000   0.000   0.000   0.000;
 1.000   106.000   0.000   0.000   0.000;
 1.000   71.000   0.000   0.000   0.000;
 1.000   65.000   0.000   0.000   0.000;
 1.000   57.000   0.000   0.000   0.000;
 1.000   115.000   0.000   0.000   0.000;
 1.000   99.000   0.000   0.000   0.000;
 1.000   66.000   0.000   0.000   0.000;
 1.000   78.000   0.000   0.000   0.000;
 1.000   131.000   0.000   0.000   0.000;
 1.000   86.000   0.000   0.000   0.000;
 1.000   68.000   0.000   0.000   0.000;
 1.000   79.000   0.000   0.000   0.000;
 1.000   56.000   0.000   0.000   0.000;
 1.000   92.000   0.000   0.000   0.000;
 1.000   122.000   0.000   0.000   0.000;
 1.000   84.000   0.000   0.000   0.000;
 1.000   108.000   0.000   0.000   0.000;
 1.000   71.000   0.000   0.000   0.000;
 1.000   92.000   0.000   0.000   0.000;
 1.000   68.000   84.000   0.000   0.000;
 1.000   86.000   0.000   0.000   0.000;
 1.000   86.000   0.000   0.000   0.000;
 1.000   68.000   85.000   0.000   0.000;
 1.000   76.000   0.000   0.000   0.000;
 1.000   81.000   0.000   0.000   0.000;
 1.000   103.000   0.000   0.000   0.000;
 1.000   42.000   0.000   0.000   0.000;
 1.000   119.000   0.000   0.000   0.000;
 1.000   50.000   0.000   0.000   0.000;
 1.000   112.000   0.000   0.000   0.000;
 1.000   106.000   54.000   0.000   0.000;
 1.000   80.000   0.000   0.000   0.000;
 1.000   115.000   0.000   0.000   0.000;
 1.000   102.000   62.000   0.000   0.000;
 1.000   93.000   0.000   0.000   0.000;
 1.000   87.000   0.000   0.000   0.000;
 1.000   102.000   63.000   0.000   0.000;
 1.000   85.000   0.000   0.000   0.000;
 1.000   

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

2016-06-29 Thread Arkadiy Maksimovskiy
Thank you for catching this. Really appreciate your help.
- Arkadiiy
___
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.


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

2016-06-23 Thread Douglas Greve

You have no HDFemales so the 2nd column is 0.


On 6/21/16 7:40 PM, Arkadiy Maksimovskiy wrote:

Hello,

Hello,

I am getting the following error:

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

Command line:
mri_glmfit --y lh.BD_SD.thickness.10B.mgh --fsgd 
FSGD_Collapsed_Across_Smokers_demeaned.fsgd dods --C BDvsSD1.mtx 
--surf fsaverage lh --cortex --glmdir lh.BD_SD.glmdir

The FSGD file (if using one)
Design matrix:

Design matrix --
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -2.151   0.000   0.000   0.000 0.000   0.000   9.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -2.151   0.000   0.000   0.000 0.000   0.000  -2.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   1.849   0.000   0.000   0.000 0.000   0.000  -31.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -2.151   0.000   0.000   0.000 0.000   0.000  -37.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -2.151   0.000   0.000   0.000 0.000   0.000   26.340   0.000;
 0.000   0.000   0.000   0.000   0.000   1.000   0.000 0.000   0.000   
0.000   0.000  -0.151   0.000   0.000 0.000   0.000   0.000  -20.660;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -1.151   0.000   0.000   0.000 0.000   0.000  -22.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   3.849   0.000   0.000   0.000 0.000   0.000  -16.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -1.151   0.000   0.000   0.000 0.000   0.000   14.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   2.849   0.000   0.000   0.000 0.000   0.000  -27.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   1.849   0.000   0.000   0.000 0.000   0.000   4.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -0.151   0.000   0.000   0.000 0.000   0.000  -30.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   0.849   0.000   0.000   0.000 0.000   0.000  -28.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   0.849   0.000   0.000   0.000 0.000   0.000  -23.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -2.151   0.000   0.000   0.000 0.000   0.000  -27.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000   2.849   0.000   0.000   0.000 0.000   0.000   13.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000 0.000   0.000   
0.000  -2.151   0.000   0.000   0.000 0.000   0.000   5.340   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151 0.000   0.000   
0.000   0.000   0.000   36.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151 0.000   0.000   
0.000   0.000   0.000  -0.660   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151 0.000   0.000   
0.000   0.000   0.000   54.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151 0.000   0.000   
0.000   0.000   0.000   45.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151 0.000   0.000   
0.000   0.000   0.000   22.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000   1.849 0.000   0.000   
0.000   0.000   0.000   38.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151 0.000   0.000   
0.000   0.000   0.000  -12.660   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000   0.849 0.000   0.000   
0.000   0.000   0.000  -12.660   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -0.151 0.000   0.000   
0.000   0.000   0.000   16.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -0.151 0.000   0.000   
0.000   0.000   0.000   50.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151 0.000   0.000   
0.000   0.000   0.000  -35.660   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151 0.000   0.000   
0.000   0.000   0.000   59.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -0.151 0.000   0.000   
0.000   0.000   0.000   25.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151 0.000   0.000   
0.000   0.000   0.000   32.340   0.000 0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151 0.000   0.000   
0.000   0.000   

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

2016-06-21 Thread Arkadiy Maksimovskiy
Hello,

Hello,

I am getting the following error:

ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

Command line:
mri_glmfit --y lh.BD_SD.thickness.10B.mgh --fsgd
FSGD_Collapsed_Across_Smokers_demeaned.fsgd dods --C BDvsSD1.mtx --surf
fsaverage lh --cortex --glmdir lh.BD_SD.glmdir

The FSGD file (if using one)

Design matrix:

Design matrix --
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -2.151   0.000   0.000   0.000   0.000   0.000   9.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -2.151   0.000   0.000   0.000   0.000   0.000  -2.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   1.849   0.000   0.000   0.000   0.000   0.000  -31.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -2.151   0.000   0.000   0.000   0.000   0.000  -37.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -2.151   0.000   0.000   0.000   0.000   0.000   26.340   0.000;
 0.000   0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000
0.000   0.000  -0.151   0.000   0.000   0.000   0.000   0.000  -20.660;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -1.151   0.000   0.000   0.000   0.000   0.000  -22.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   3.849   0.000   0.000   0.000   0.000   0.000  -16.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -1.151   0.000   0.000   0.000   0.000   0.000   14.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   2.849   0.000   0.000   0.000   0.000   0.000  -27.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   1.849   0.000   0.000   0.000   0.000   0.000   4.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -0.151   0.000   0.000   0.000   0.000   0.000  -30.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   0.849   0.000   0.000   0.000   0.000   0.000  -28.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   0.849   0.000   0.000   0.000   0.000   0.000  -23.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -2.151   0.000   0.000   0.000   0.000   0.000  -27.660   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000   2.849   0.000   0.000   0.000   0.000   0.000   13.340   0.000;
 0.000   0.000   0.000   0.000   1.000   0.000   0.000   0.000   0.000
0.000  -2.151   0.000   0.000   0.000   0.000   0.000   5.340   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151   0.000   0.000
0.000   0.000   0.000   36.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151   0.000   0.000
0.000   0.000   0.000  -0.660   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151   0.000   0.000
0.000   0.000   0.000   54.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151   0.000   0.000
0.000   0.000   0.000   45.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151   0.000   0.000
0.000   0.000   0.000   22.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000   1.849   0.000   0.000
0.000   0.000   0.000   38.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151   0.000   0.000
0.000   0.000   0.000  -12.660   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000   0.849   0.000   0.000
0.000   0.000   0.000  -12.660   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -0.151   0.000   0.000
0.000   0.000   0.000   16.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -0.151   0.000   0.000
0.000   0.000   0.000   50.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151   0.000   0.000
0.000   0.000   0.000  -35.660   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151   0.000   0.000
0.000   0.000   0.000   59.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -0.151   0.000   0.000
0.000   0.000   0.000   25.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -1.151   0.000   0.000
0.000   0.000   0.000   32.340   0.000   0.000   0.000   0.000   0.000;
 1.000   0.000   0.000   0.000   0.000   0.000  -2.151   0.000   0.000
0.000   0.000   0.000   14.340   0.000   0.000   0.000   0.000   0.000;
 0.000   

Re: [Freesurfer] matrix is ill-conditioned or badly scaled, condno = 27492.1

2016-02-07 Thread Douglas Greve

Try multiplying the covariate by 100 (after subtracting the mean).

On 2/5/16 8:28 AM, Nabin Koirala wrote:
I did that but it still does not work, it is almost the same error 
except the condno is now 15521.8 before it was 27492.1, though I am 
not sure if that tells something about the error. Could it be 
something else ?

Thank you.

Regards,
Nabin

On Thu, Feb 4, 2016 at 5:59 PM, Douglas Greve 
> wrote:


I'm not sure what the difference is. Compute the mean of the 2nd
column, then subtract that number from the values in the 2nd column.
doug


On 2/2/16 7:30 AM, Nabin Koirala wrote:

Thank you for your response . Sorry but for my understanding,
should i substract the mean from the data (demean) or you mean to
remove the value which is equal to the mean ?

Thank you.

Regards,
Nabin

On Mon, Feb 1, 2016 at 5:21 PM, Douglas N Greve
> wrote:

Try removing the mean from your covariate

On 01/30/2016 01:31 PM, Nabin Koirala wrote:
> Dear Freesurfer forum,
>
> 'I am trying to run qdec analysis for a group of subjects
to see if
> correlation exists but I am getting this error only for this
>  particular set of data but could not figure out what is
exactly wrong
> with it. Your suggestion would be greatly appreciated.
>
> Following is the terminal output for the process:
> ..
> Saving design matrix to
/g/f/h/s/freesurfer/subjects/qdec/Untitled/Xg.dat
> Normalized matrix condition is 27492.1
> Design matrix --
>  1.000   0.408;
>  1.000   0.417;
>  1.000   0.417;
>  1.000   0.405;
>  1.000   0.412;
>  1.000   0.412;
>  1.000   0.411;
>  1.000   0.417;
>  1.000   0.405;
>  1.000   0.406;
>  1.000   0.402;
>  1.000   0.419;
>  1.000   0.413;
>  1.000   0.413;
> 
> ERROR: matrix is ill-conditioned or badly scaled, condno =
27492.1
> 
> 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
/g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh
> --fsgd /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd
dods
> --glmdir /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf
fsaverage
> lh --label
/g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label
> --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
> --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>
>   2. The FSGD file (if using one)
>   3. And the design matrix above
> Error in Analyze: command failed: mri_glmfit --y
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods
--glmdir
> /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage
lh --label
> /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
> --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>
> Many thanks in advance.
>
> Regards,
> Nabin
>
>
> ___
> 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


Re: [Freesurfer] matrix is ill-conditioned or badly scaled, condno = 27492.1

2016-02-05 Thread Nabin Koirala
I did that but it still does not work, it is almost the same error except
the condno is now 15521.8 before it was 27492.1, though I am not sure if
that tells something about the error. Could it be something else ?
Thank you.

Regards,
Nabin

On Thu, Feb 4, 2016 at 5:59 PM, Douglas Greve 
wrote:

> I'm not sure what the difference is. Compute the mean of the 2nd column,
> then subtract that number from the values in the 2nd column.
> doug
>
>
> On 2/2/16 7:30 AM, Nabin Koirala wrote:
>
> Thank you for your response . Sorry but for my understanding, should i
> substract the mean from the data (demean) or you mean to remove the value
> which is equal to the mean ?
>
> Thank you.
>
> Regards,
> Nabin
>
> On Mon, Feb 1, 2016 at 5:21 PM, Douglas N Greve  > wrote:
>
>> Try removing the mean from your covariate
>>
>> On 01/30/2016 01:31 PM, Nabin Koirala wrote:
>> > Dear Freesurfer forum,
>> >
>> > 'I am trying to run qdec analysis for a group of subjects to see if
>> > correlation exists but I am getting this error only for this
>> >  particular set of data but could not figure out what is exactly wrong
>> > with it. Your suggestion would be greatly appreciated.
>> >
>> > Following is the terminal output for the process:
>> > ..
>> > Saving design matrix to
>> /g/f/h/s/freesurfer/subjects/qdec/Untitled/Xg.dat
>> > Normalized matrix condition is 27492.1
>> > Design matrix --
>> >  1.000   0.408;
>> >  1.000   0.417;
>> >  1.000   0.417;
>> >  1.000   0.405;
>> >  1.000   0.412;
>> >  1.000   0.412;
>> >  1.000   0.411;
>> >  1.000   0.417;
>> >  1.000   0.405;
>> >  1.000   0.406;
>> >  1.000   0.402;
>> >  1.000   0.419;
>> >  1.000   0.413;
>> >  1.000   0.413;
>> > 
>> > ERROR: matrix is ill-conditioned or badly scaled, condno = 27492.1
>> > 
>> > 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 /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh
>> > --fsgd /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods
>> > --glmdir /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage
>> > lh --label /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label
>> > --C
>> >
>> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
>> > --C
>> >
>> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>> >
>> >   2. The FSGD file (if using one)
>> >   3. And the design matrix above
>> > Error in Analyze: command failed: mri_glmfit --y
>> > /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd
>> > /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods --glmdir
>> > /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage lh --label
>> > /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C
>> >
>> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
>> > --C
>> >
>> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>> >
>> > Many thanks in advance.
>> >
>> > Regards,
>> > Nabin
>> >
>> >
>> > ___
>> > 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.
>>
>>
>
>
> ___
> Freesurfer mailing 
> listfreesur...@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
>
> ___
> 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 

Re: [Freesurfer] matrix is ill-conditioned or badly scaled, condno = 27492.1

2016-02-04 Thread Douglas Greve
I'm not sure what the difference is. Compute the mean of the 2nd column, 
then subtract that number from the values in the 2nd column.

doug

On 2/2/16 7:30 AM, Nabin Koirala wrote:
Thank you for your response . Sorry but for my understanding, should i 
substract the mean from the data (demean) or you mean to remove the 
value which is equal to the mean ?


Thank you.

Regards,
Nabin

On Mon, Feb 1, 2016 at 5:21 PM, Douglas N Greve 
> wrote:


Try removing the mean from your covariate

On 01/30/2016 01:31 PM, Nabin Koirala wrote:
> Dear Freesurfer forum,
>
> 'I am trying to run qdec analysis for a group of subjects to see if
> correlation exists but I am getting this error only for this
>  particular set of data but could not figure out what is exactly
wrong
> with it. Your suggestion would be greatly appreciated.
>
> Following is the terminal output for the process:
> ..
> Saving design matrix to
/g/f/h/s/freesurfer/subjects/qdec/Untitled/Xg.dat
> Normalized matrix condition is 27492.1
> Design matrix --
>  1.000   0.408;
>  1.000   0.417;
>  1.000   0.417;
>  1.000   0.405;
>  1.000   0.412;
>  1.000   0.412;
>  1.000   0.411;
>  1.000   0.417;
>  1.000   0.405;
>  1.000   0.406;
>  1.000   0.402;
>  1.000   0.419;
>  1.000   0.413;
>  1.000   0.413;
> 
> ERROR: matrix is ill-conditioned or badly scaled, condno = 27492.1
> 
> 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 /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh
> --fsgd /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods
> --glmdir /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage
> lh --label
/g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label
> --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
> --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>
>   2. The FSGD file (if using one)
>   3. And the design matrix above
> Error in Analyze: command failed: mri_glmfit --y
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods --glmdir
> /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage lh
--label
> /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
> --C
>

/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>
> Many thanks in advance.
>
> Regards,
> Nabin
>
>
> ___
> 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.




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


___
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 

Re: [Freesurfer] matrix is ill-conditioned or badly scaled, condno = 27492.1

2016-02-02 Thread Nabin Koirala
Thank you for your response . Sorry but for my understanding, should i
substract the mean from the data (demean) or you mean to remove the value
which is equal to the mean ?

Thank you.

Regards,
Nabin

On Mon, Feb 1, 2016 at 5:21 PM, Douglas N Greve 
wrote:

> Try removing the mean from your covariate
>
> On 01/30/2016 01:31 PM, Nabin Koirala wrote:
> > Dear Freesurfer forum,
> >
> > 'I am trying to run qdec analysis for a group of subjects to see if
> > correlation exists but I am getting this error only for this
> >  particular set of data but could not figure out what is exactly wrong
> > with it. Your suggestion would be greatly appreciated.
> >
> > Following is the terminal output for the process:
> > ..
> > Saving design matrix to /g/f/h/s/freesurfer/subjects/qdec/Untitled/Xg.dat
> > Normalized matrix condition is 27492.1
> > Design matrix --
> >  1.000   0.408;
> >  1.000   0.417;
> >  1.000   0.417;
> >  1.000   0.405;
> >  1.000   0.412;
> >  1.000   0.412;
> >  1.000   0.411;
> >  1.000   0.417;
> >  1.000   0.405;
> >  1.000   0.406;
> >  1.000   0.402;
> >  1.000   0.419;
> >  1.000   0.413;
> >  1.000   0.413;
> > 
> > ERROR: matrix is ill-conditioned or badly scaled, condno = 27492.1
> > 
> > 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 /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh
> > --fsgd /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods
> > --glmdir /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage
> > lh --label /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label
> > --C
> >
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
> > --C
> >
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
> >
> >   2. The FSGD file (if using one)
> >   3. And the design matrix above
> > Error in Analyze: command failed: mri_glmfit --y
> > /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd
> > /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods --glmdir
> > /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage lh --label
> > /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C
> >
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
> > --C
> >
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
> >
> > Many thanks in advance.
> >
> > Regards,
> > Nabin
> >
> >
> > ___
> > 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.
>
>
___
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.


Re: [Freesurfer] matrix is ill-conditioned or badly scaled, condno = 27492.1

2016-02-01 Thread Douglas N Greve
Try removing the mean from your covariate

On 01/30/2016 01:31 PM, Nabin Koirala wrote:
> Dear Freesurfer forum,
>
> 'I am trying to run qdec analysis for a group of subjects to see if 
> correlation exists but I am getting this error only for this 
>  particular set of data but could not figure out what is exactly wrong 
> with it. Your suggestion would be greatly appreciated.
>
> Following is the terminal output for the process:
> ..
> Saving design matrix to /g/f/h/s/freesurfer/subjects/qdec/Untitled/Xg.dat
> Normalized matrix condition is 27492.1
> Design matrix --
>  1.000   0.408;
>  1.000   0.417;
>  1.000   0.417;
>  1.000   0.405;
>  1.000   0.412;
>  1.000   0.412;
>  1.000   0.411;
>  1.000   0.417;
>  1.000   0.405;
>  1.000   0.406;
>  1.000   0.402;
>  1.000   0.419;
>  1.000   0.413;
>  1.000   0.413;
> 
> ERROR: matrix is ill-conditioned or badly scaled, condno = 27492.1
> 
> 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 /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh 
> --fsgd /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods 
> --glmdir /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage 
> lh --label /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label 
> --C 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
>  
> --C 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>  
>
>   2. The FSGD file (if using one)
>   3. And the design matrix above
> Error in Analyze: command failed: mri_glmfit --y 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods --glmdir 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage lh --label 
> /g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
>  
> --C 
> /g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
>
> Many thanks in advance.
>
> Regards,
> Nabin
>
>
> ___
> 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.



[Freesurfer] matrix is ill-conditioned or badly scaled, condno = 27492.1

2016-01-30 Thread Nabin Koirala
Dear Freesurfer forum,

'I am trying to run qdec analysis for a group of subjects to see if
correlation exists but I am getting this error only for this  particular
set of data but could not figure out what is exactly wrong with it. Your
suggestion would be greatly appreciated.

Following is the terminal output for the process:
..
Saving design matrix to /g/f/h/s/freesurfer/subjects/qdec/Untitled/Xg.dat
Normalized matrix condition is 27492.1
Design matrix --
 1.000   0.408;
 1.000   0.417;
 1.000   0.417;
 1.000   0.405;
 1.000   0.412;
 1.000   0.412;
 1.000   0.411;
 1.000   0.417;
 1.000   0.405;
 1.000   0.406;
 1.000   0.402;
 1.000   0.419;
 1.000   0.413;
 1.000   0.413;

ERROR: matrix is ill-conditioned or badly scaled, condno = 27492.1

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 /g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd
/g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods --glmdir
/g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage lh --label
/g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C
/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
--C
/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat
  2. The FSGD file (if using one)
  3. And the design matrix above
Error in Analyze: command failed: mri_glmfit --y
/g/f/h/s/freesurfer/subjects/qdec/Untitled/y.mgh --fsgd
/g/f/h/s/freesurfer/subjects/qdec/Untitled/qdec.fsgd dods --glmdir
/g/f/h/s/freesurfer/subjects/qdec/Untitled --surf fsaverage lh --label
/g/f/h/s/freesurfer/subjects/fsaverage/label/lh.aparc.label --C
/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-Intercept-thickness.mat
--C
/g/f/h/s/freesurfer/subjects/qdec/Untitled/contrasts/lh-Avg-thickness-alpha1-Cor.mat

Many thanks in advance.

Regards,
Nabin
___
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.


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

2014-08-26 Thread Jürgen Hänggi
Hi Doug

Thanks a lot for your answer

Cheers
Jürgen

---
-
Jürgen Hänggi, Ph.D.
Division Neuropsychology
Institute of Psychology
University of Zurich
Binzmuehlestrasse 14, PO Box 25
8050 Zurich, Switzerland
0041 44 635 73 97 (phone office)
0041 76 445 86 84 (phone mobile)
0041 44 635 74 09 (fax office)
BIN 4.D.04 (office room number)
j.haenggi[at]psychologie.uzh.ch (email)
http://www.psychologie.uzh.ch/neuropsy/ (website)
http://www.juergenhaenggi.ch (private website)

This e-mail (and any attachment/s) contains confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
---
-





Am 22.08.14 18:36 schrieb Douglas N Greve unter
gr...@nmr.mgh.harvard.edu:


Looks like your fsgd file was created under a windows machine or old
macos, try converting the fsgd like this

cat old.fsgd | sed 's/\\r/\\n/g'  new.fsgd




On 08/22/2014 02:51 AM, Jürgen Hänggi wrote:
 Dear FS experts

 We run mri_glmfit and encountered the following error:

 INFO: gd2mtx_method is doss
 Saving design matrix to
 LTHV_Thickness_LH_correlation_memory2.glmdir/Xg.dat
 Normalized matrix condition is 1e+08
 Design matrix --
 
 ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

 The command line is as follow:

 mri_glmfit --y LTHV_lh_thickness.15.mgh --fsgd
 LTHV_fsgd_correlation_memory2.txt doss --glmdir
 LTHV_Thickness_LH_correlation_memory2.glmdir --surf average_LTHV_TP1
 lh --C LTHV_Design_corr.mat ‹cortex

 The FSGD and Design files are attached

 We did not find the problem.

 Thanks in advance for your help.

 Regards
 Jürgen Hänggi

 
-
---
 Jürgen Hänggi, Ph.D.
 Division Neuropsychology
 Institute of Psychology
 University of Zurich
 Binzmuehlestrasse 14, PO Box 25
 8050 Zurich, Switzerland
 0041 44 635 73 97 (phone office)
 0041 76 445 86 84 (phone mobile)
 0041 44 635 74 09 (fax office)
 BIN 4.D.04 (office room number)
 j.haenggi[at]psychologie.uzh.ch (email)
 http://www.psychologie.uzh.ch/neuropsy/ (website)
 http://www.juergenhaenggi.ch (private website)

 This e-mail (and any attachment/s) contains confidential and/or
privileged
 information. If you are not the intended recipient (or have received
this
 e-mail in error) please notify the sender immediately and destroy this
 e-mail. Any unauthorised copying, disclosure or distribution of the
 material in this e-mail is strictly forbidden.
 
-
---



 ___
 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.




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


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

2014-08-22 Thread Douglas N Greve

Looks like your fsgd file was created under a windows machine or old 
macos, try converting the fsgd like this

cat old.fsgd | sed 's/\\r/\\n/g'  new.fsgd




On 08/22/2014 02:51 AM, Jürgen Hänggi wrote:
 Dear FS experts

 We run mri_glmfit and encountered the following error:

 INFO: gd2mtx_method is doss
 Saving design matrix to 
 LTHV_Thickness_LH_correlation_memory2.glmdir/Xg.dat
 Normalized matrix condition is 1e+08
 Design matrix --
 
 ERROR: matrix is ill-conditioned or badly scaled, condno = 1e+08

 The command line is as follow:

 mri_glmfit --y LTHV_lh_thickness.15.mgh --fsgd 
 LTHV_fsgd_correlation_memory2.txt doss --glmdir 
 LTHV_Thickness_LH_correlation_memory2.glmdir --surf average_LTHV_TP1 
 lh --C LTHV_Design_corr.mat —cortex

 The FSGD and Design files are attached

 We did not find the problem.

 Thanks in advance for your help.

 Regards
 Jürgen Hänggi

 
 Jürgen Hänggi, Ph.D.
 Division Neuropsychology
 Institute of Psychology
 University of Zurich
 Binzmuehlestrasse 14, PO Box 25
 8050 Zurich, Switzerland
 0041 44 635 73 97 (phone office)
 0041 76 445 86 84 (phone mobile)
 0041 44 635 74 09 (fax office)
 BIN 4.D.04 (office room number)
 j.haenggi[at]psychologie.uzh.ch (email)
 http://www.psychologie.uzh.ch/neuropsy/ (website)
 http://www.juergenhaenggi.ch (private website)

 This e-mail (and any attachment/s) contains confidential and/or privileged
 information. If you are not the intended recipient (or have received this
 e-mail in error) please notify the sender immediately and destroy this
 e-mail. Any unauthorised copying, disclosure or distribution of the
 material in this e-mail is strictly forbidden.
 



 ___
 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.