Skip to main content
2 of 3
added 8 characters in body
User1865345
  • 10.3k
  • 12
  • 23
  • 40

Outlier Detection using OutlierTest

I found an outlier using the outlierTest function in the car package. However, I can see from the results that the Externally Studentized Residual and p-values. This is a result for the full model.

enter image description here

Cooks D Bar Plot:

enter image description here

After using removing the outlier I have used the ols_step_both_aic from the olsrr library and decided that 2 predictors are significant which are bath and sqft.

lm(price~ bath + sqft, data=without_outlier)

Summary: enter image description here

Although after removing the outlier sqft is not a significant predictor anymore. Did I make a wrong decision removing the outlier? If so why?

Summary with the outlier: enter image description here

The diagnostic graphics from the chosen model look as follows:

Dome
  • 21
  • 2