how to identify a fitglm output as being rank deficient from the resulting object
3 次查看(过去 30 天)
显示 更早的评论
My question is as follows:
I am running a very large number of multivariable regressions. My problem is that sometimes these are identified as being rank deficient regressions. I am totally cool with that, but I would like to be able to identify them as so once my loop is complete.
Is there a way to identify if a regression is rank deficient from the object that fitglm outputs?
0 个评论
回答(1 个)
Tom Lane
2016-6-24
If your model is f, you could see if
f.NumCoefficients > f.NumEstimatedCoefficients
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!