estimate and SE in a linear regression becomes 0
Mostrar comentarios más antiguos
...and tStat and pValue becomes NaN. What is the typical reason for that? It is a dummy (either 0 or 1) by the way.
I get the error message below after fitting the linear model (first line):
mdl = LinearModel.fit(ds,'linear','RobustOpts','on');
Warning: Regression design matrix is rank
deficient to within machine precision.
> In TermsRegression>TermsRegression.checkDesignRank at 98
In LinearModel.LinearModel>LinearModel.fit at 969
What is the typical reason for that?
It is a dummy (either 0 or 1) by the way.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics and Insights en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!