uni_kappa: Universal calculation of Condition Number (kappa)

Description Usage Details

Description

Calculates Condition Number of matrix for common model types

Usage

1
2
uni_kappa(model, scale = FALSE, center = FALSE, exact = FALSE,
  add_intercept = TRUE)

Details

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


steffilazerte/diagnostics documentation built on July 1, 2019, 2:31 p.m.