[R] isSingular for lm?

Witold E Wolski wewo|@k| @end|ng |rom gm@||@com
Fri Apr 5 12:14:34 CEST 2019


lme4 has a function isSingular to check if the fitted model is Singular,

Although lm has the parameter singular.ok = TRUE by defualt, I could
not find a function to check if the fitted model is singular.

What would be the correct way to implement such a function for and lm object?
Check if df.residuals == 0

Thanks
Witek





-- 
Witold Eryk Wolski



More information about the R-help mailing list