Description Usage Arguments Details Value Author(s) References See Also Examples
Plot of VIF and Eigenvalues for detection of multicollinearity among regressors. The VIF and Eigenvalues are also displayed on graph. Eigenvalues plot can be displayed with or without inclusion of intercept term.
1 |
mod |
A model object, not necessarily type |
Inter |
Whether to include or exclude Intercept term, by default |
vif |
Threshold of VIF and will appear as horizontal line on VIF plot. The default value is |
ev |
Threshold of Eigenvalues and will appear as horizontal line on Eigenvalues plot. The default value is |
... |
Extra argument(s) if used will be ignored. |
mc.plot
function draw graphs of VIF and Eigenvalues for graphical detection of collinearity among regression. Horizontal line for VIF and Eigenvalues is drawn as indication of threshold values of both VIF and Eigenvalues for testing the multicollinearity.
Don't return any thing, it displays plot.
Muhammad Imdad Ullah, Muhammad Aslam
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.
Overall collinearity diagnostic measures omcdiag, Individual collinearity diagnostic measures imcdiag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Hald Cement data
data(Hald)
model <- lm(y~X1+X2+X3+X4, data = as.data.frame(Hald))
## plot with default threshold of VIF and Eigenvalues with no intercept
mc.plot(model)
## plot with default threshold of VIF and Eigenvalues with intercept
mc.plot(model, Inter = TRUE)
## plot with specific threshold of VIF and Eigenvalues with no intercept
mc.plot(model, vif = 5, ev = 20)
## plot with specific threshold of VIF and Eigenvalues with intercept
mc.plot(model, vif = 5, ev = 20, Inter = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.