omcdiag {mctest} | R Documentation |
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 (Cooley and Lohnes, 1971), Farrar test of chi-square for presence of multicollinearity (Farrar and Glauber, 1967), Red Indicator (Kovacs et al., 2015) <doi: 10.1111/j.1751-5823.2005.tb00156.x>, Sum of lambda inverse Chatterjee and Price (1977) values, Theil's indicator (Theil, 1971) and condition number (Belsley et al., 1980) <doi: 10.1007/BF00426854> with or without intercept term.
Usage
omcdiag(mod, na.rm = TRUE, Inter = TRUE, detr = 0.01, red = 0.5,
conf = 0.95, theil = 0.5, cn = 30,...)
Arguments
mod |
A model object, not necessarily type |
na.rm |
Whether to remove missing observations. |
Inter |
Whether to include or exclude Intercept term, by default |
detr |
Determinant default threshold, |
red |
red indicator default threshold, |
conf |
confidence level of Farrar Chi-Square test, |
theil |
Theil's indicator default threshold, |
cn |
condition number default threshold, |
... |
Extra argument(s) if used will be ignored. |
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:
Value
odiags |
Listing of all overall diagnostic measures. |
Inter |
logical, if |
x |
matrix of regressors. |
call |
The matched call. |
Note
Missing values in data will be removed by default. There is no method for the detection of multicollinearity, if missing values exists in the data set.
Author(s)
Muhammad Imdad Ullah, Muhammad Aslam
References
Belsely, D. A. A Guide to Using the Collinearity Diagnostics. Computer Science in Economics and Management, 4(1): 33–50, 1991.
Belsley, D. A., Kuh, E., and Welsch, R. E. Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. John Wiley \& Sons, New York, 1980.
Chatterjee, S. and Hadi, A. S. Regression Analysis by Example. John Wiley \& Sons, 4th edition, New York, 2006.
Greene, W. H. Econometric Analysis. Prentice–Hall, Upper Saddle River, New Jersey, 4th edition, 2000.
Imdad, M. U. Addressing Linear Regression Models with Correlated Regressors: Some Package Development in R (Doctoral Thesis, Department of Statistics, Bahauddin Zakariya University, Multan, Pakistan), 2017.
Imdadullah, M., Aslam, M., and Altaf, S. mctest: An R Package for Detection of Collinearity Among Regressors. The R Journal, 8(2):499–509, 2016.
Kovacs, P., Petres, T., and Toth, L. A New Measure of Multicollinearity in Linear Regression Models. International Statistical Review / Revue Internationale de Statistique, 73(3): 405–412, 2005.
See Also
Individual collinearity diagnostic measure imcdiag
, Eigenvalues and variance decomposition proportion eigprop
Examples
## Hald Cement data
data(Hald)
model <- lm(y~X1+X2+X3+X4, data = as.data.frame(Hald))
## all oveall diagnostic measures and eigenvalues with intercept
od<-omcdiag(model)
## all oveall diagnostic measures and eigenvalues without intercept
omcdiag(model, Inter=FALSE)
## all oveall diagnostic measures and eigenvalues with intercept
## with different determinant and confidence level threshold
omcdiag(model, detr=0.001, conf=0.99)
## returns the determinant of correlation matrix |X'X|
omcdiag(model)[1]