MATLAB Answers

0

how to identify a fitglm output as being rank deficient from the resulting object

Asked by Will Kinsman on 24 May 2016
Latest activity Answered by Tom Lane
on 24 Jun 2016
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 Comments

Sign in to comment.

1 Answer

Answer by Tom Lane
on 24 Jun 2016

If your model is f, you could see if
f.NumCoefficients > f.NumEstimatedCoefficients

  0 Comments

Sign in to comment.