Last chance! 50% off unlimited learning
Sale ends in
imcdiag(x, y, method = NULL, na.rm = TRUE, corr = FALSE, vif=10, tol=0.1, conf=0.95, cvif=10, leamer=0.1,...)
method="VIF"
Inter=TRUE
vif=10
tol=0.10
conf=0.99
CVIF=10
leamer=0.1
method="CVIF"
provided. If method
is not used all individual diagnostics will be dispalyed.FALSE
(the default value) a correlation matrix is returned after all or required individual collinearity diagnostic.imcdiag
function detectes the existance of multicollinearity due to x-variable. That's why named as individual measures of diagnostics. This includes VIF, TOL, Condition Indices, Klien's rule, Theil's measure, Red Indicator, Farrar and Glauber test of Chi-square and F-test, Leamer's method etc. If method
argument is used (method="VIF"
), the result for VIF indicator will be displayed with decision of either collinearity exists or not due to certain regressor which is indicated by 0 (collinearity is not detected by method for regressor given in row) and 1 (collinearity is detected by the method for regressor given in row).Catterjee, S. and A. Hadi, Regression Analysis by Example. 4 ed. 2006, Hoboken, New York; John Willey 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.
omcdiag
## Hald Cement data
data(Hald)
x<-Hald[,-1]
y<-Hald[,1]
## all Individual measures
id<-imcdiag(x,y); id$idiags[,1]
# VIF measure with custom VIF threshold
imcdiag(x,y, method="VIF", vif=5)
# CVIF measure with custom CVIF threshold and correlation matrix
imcdiag(x,y, method="CVIF", cvif=5, corr=TRUE)
## only VIF values without collinearity detection indication
imcdiag(x,y, method="VIF")[[1]][,1]
plot(imcdiag(x,y, method="VIF")[[1]][,1]) # vif plot
Run the code above in your browser using DataLab