Calculates Condition Number of matrix for common model types
1 2 |
For non-mixed models (lm and glm) uses kappa() from base package. For mixed models uses function from Austin F. Frank: https://github.com/aufrank/R-hacks/blob/master/mer-utils.R
Condition numbers should be less than 10 or 20 or you have multicollinearity "values greater than 30 indicate collinearities that require attention." (Quinn and Keough 2002)
Note that kappa(lm) == uni_kappa(lm) but kappa(glm) != uni_kappa(glm) Has to do with method of calculation, use with caution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.