Not necessarily.  This error can arise if any of the columns are linearly dependent. But try rescaling first

On 5/9/2025 8:29 AM, Ane Gurtubay wrote:

        External Email - Use Caution        

Dear Douglas,

whenever we get this error ERROR: matrix is ill-conditioned or badly scaled  as in https://www.mail-archive.com/freesurfer%40nmr.mgh.harvard.edu/msg74674.html, should we normalize the values in the fsgd file or the design matrix (Xg.dat)?

Thank you in advance,
Ane

----
Ane Gurtubay Antolin, PhD
Ikerbasque Research Fellow
Basque Center on Cognition, Brain and Language (BCBL)
www.bcbl.eu/en/ane-gurtubay-antolin