I am running a linear regression on the house prices dataset from Kaggle and I was trying to see if I can find collinearity between some variables in order to improve my prediction.
To this purpose I wanted to use the VIF function in R (package car) but I get the error: 'there are aliased coefficients in the model' What are 'aliased coefficients'? helped to get a better understanding as to why I am getting this error, so I did the analysis and I found out that indeed two predictors are always matching.
My problem is that these predictors are dummy levels on two categorical variables, BldgTypeDuplex and MSSubClass90. So my question is how do I deal with this? I cannot remove those two predictors as I have examples in the test set with these values and I do not want to remove the whole variables BldgType or MSSubClass as they contain useful information.