Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cond.index

Calculation of Condition Indices for Linear Regression


Description

Diagnosis of collinearity in X

Usage

cond.index(formula, data, ...)

Arguments

formula

formula of the form ‘groups ~ x1 + x2 + ...

data

data frame (or matrix) containing the explanatory variables

...

further arguments to be passed to lm

Details

Collinearities can inflate the variance of the estimated regression coefficients and numerical stability. The condition indices are calculated by the eigenvalues of the crossproduct matrix of the scaled but uncentered explanatory variables. Indices > 30 may indicate collinearity.

Value

A vector of the condition indices.

Author(s)

Andrea Preusser, Karsten Luebke (karsten.luebke@fom.de)

References

Belsley, D. , Kuh, E. and Welsch, R. E. (1979), Regression Diagnostics: Identifying Influential Data and Sources of Collinearity, John Wiley (New York)

See Also

Examples

data(Boston)
condition_medv <- cond.index(medv ~ ., data = Boston)
condition_medv

klaR

Classification and Visualization

v0.6-15
GPL-2 | GPL-3
Authors
Christian Roever, Nils Raabe, Karsten Luebke, Uwe Ligges, Gero Szepannek, Marc Zentgraf, David Meyer
Initial release
2020-02-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.