“Regression design matrix is rank deficient” - what to do next?
Ältere Kommentare anzeigen
I have the following model:
Reduction_in_clinical_score ~ Baseline_clinical_score + Site_of_data_collection + Treatment_Type + Age + Sex + ERP
Site of data collection is made up of four levels (categorical variable), treatment type has two levels (categorical variable), and sex has two levels (categorical). All other variables are continuous (double).
There are 88 observations in total.
In Matlab (using fitlm), I am running into the following error: Warning: Regression design matrix is rank deficient to within machine precision.
From what I have gathered online, it seems as though this may be caused by having an inadequate number of observations relative to the number of predictors in my model.
My question is then what would be the next step in this case?
Would it be to remove a predictor (ideally based on theory/literature)?
I ran the same linear regression in SPSS, which provided no warning (the output all looks reasonable). So I am not sure if this is something wrong perhaps with how I prepared my table for Matlab?
Thank you.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Linear Predictive Coding finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!