calc_kappa | R Documentation |
Calculates the condition number with the intercept included, following Belsley, Kuh and Welsch (1980).
calc_kappa(mod, data = NULL)
mod |
a model object created by |
Adapted from the collin.fnc
function in the languageR
package.
the condition number
F.J. Tweedie; Jason Grafmiller
Belsley, D. A. and Kuh, E. and Welsch, R. E. (1980) Regression Diagnostics. Identifying Influential Data and Sources of Collinearity, Wiley Series in Probability and Mathematical Statistics, New York.
## Not run:
set.seed(1)
x1 <- rnorm(100)
x2 <- x1+.1*rnorm(100)
x3 <- x2 + .5*rnorm(100)
y <- sample(0:1, 100, TRUE)
f <- glm(y ~ x1 + x2 + x3, family = binomial, x = TRUE)
calc_kappa(f)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.