0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

Spm1d.stats.glm, LinAlgError: Singular matrix #185

Closed EmblaJ closed 2 years ago

EmblaJ commented 3 years ago

Hi. I am doing multiple regression analyses using spm1d glm. Can I do something to prevent this error, LinAlgError: Singular matrix?

LinAlgError_Singular matrix
0todd0000 commented 2 years ago

Hello, sorry for the very long delay!!

This error occurs if two columns of the design matrix X are the same. The columns must be linearly independent.