mctest (version 1.1)

omcdiag: Overall multicollinearity diagnostics measures

Description

Computes different overall measures of multicollinearity diagnostics for matrix of regressors. Overall measures of collinearity detection includes Determinant of the correlation matrix, Farrar test of chi-square for presence of multicollinearity, Red Indicator, Sum of lambda inverse values, Theil's indicator and condition number with or without intercept term.

Usage

omcdiag(x, y, na.rm = TRUE, Inter = TRUE, detr=0.01, red=0.5,
                     conf=0.95, theil=0.5, cn=30,...)

Arguments

x

A numeric design matrix and should contain more than one regressor.

y

A numeric vector of response variable.

na.rm

Whether to remove missing observations.

Inter

Whether to include or exclude Intercept term, by default Inter=TRUE.

detr

Determinant default threshold, detr=0.01.

red

red indicator default threshold, red=0.5.

conf

confidence level of Farrar Chi-Square test, conf=0.95.

theil

Theil's indicator default threshold, theil=0.5.

cn

condition number default threshold, cn=30.

Extra argument(s) if used will be ignored.

Value

odiags

Listing of all overall diagnostic measures.

Inter

logical, if TRUE (the default value) a eigenvalues are returned with intercept term included.

x

matrix of regressors.

Eigval

Eigenvalues for each regressor.

call

The matched call.

Details

This function detects the existence of multicollinearity by using different available diagnostic measures already available in literature such as Determinant of correlation matrix, Farrar test of chi-square, Red Indicator, Sum of lambda inverse values, Theil's Indicator and Condition Number.

Function also displays diagnostic measures value with the decision of either multicollinearity is detected by the diagnostics or not. The Value of 1 indicate that multicollinearity is detected and 0 indicate measure could not detect by the certain diagnostic measure. A list object of class "omc" is returned:

References

Belsely, D.A., A Guide to Using the Collinearity Diagnostics. Computer science in Economics and Management, 1991. 4(1): 33--50.

Chatterjee, S. and A. Hadi, Regression Analysis by Example. 4 ed. 2006, Hoboken, New York; John Wiley and Sons Inc.

Belsley, David. A., Edwin. Kuh, and Roy. E. Welsch. 1980. Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. New York: John Wiley and Sons.

Greene, William H. 2000. Econometric Analysis. 4th Ed. Upper Saddle River, NJ: Prentice--Hall.

Imdadullah, M. Addressing Linear Regression Models with Correlated Regressors: Some Package Development in R, Submitted Ph.D thesis, Department of Statistics, Bahauddin Zakariya University, Multan, Pakistan

See Also

Individual collinearity diagnostic measure imcdiag

Examples

Run this code
# NOT RUN {
## Hald Cement data
data(Hald)
x<-Hald[,-1]
y<-Hald[,1]

## all oveall diagnostic measures and eigenvalues with intercept
od<-omcdiag(x,y)

## all oveall diagnostic measures and eigenvalues without intercept
omcdiag(x,y, Inter=FALSE)

## all oveall diagnostic measures and eigenvalues with intercept
## with different determinant and confidence level threshold

omcdiag(x,y, detr=0.001, conf=0.99)

## returns the determinant of correlation matrix |X'X|
omcdiag(x,y)[1]
# }

Run the code above in your browser using DataLab