Learn R Programming

Indicator (version 0.1.3)

compute_CI: Calculation of Condition Indices

Description

Diagnosis of collinearity in matrix X

Usage

compute_CI(matrix)

Value

It returns the condition index of the matrix

Arguments

matrix

a matrix of data where rows = observations and columns = variables

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

References

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

Examples

Run this code

data("Education")
compute_CI(Education)

Run the code above in your browser using DataLab