## 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