0

I was trying to test for multicollinearity using VIF. Here is my codes:

mreg.mod = lm(price ~ bedrooms + bathrooms + sqft_living + sqft_lot +  
             floors + condition + grade + sqft_basement + sqft_above  
             + sqft_living15 + sqft_lot15 data = data)
summary(mreg.mod)
tidy(vif(mreg.mod))

But an error that says "there are aliased coefficients in the model" pops up. I was wondering if this has to do with my lm model?

kjetil b halvorsen
  • 63,378
  • 26
  • 142
  • 467

0 Answers0