Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStudentized residuals vs fitted plot should return the threshold value #16
Comments
|
> library(olsrr)
> library(caret)
> data("Sacramento")
> lm_fit2 <- lm(price ~ beds + baths + log(sqft), data = Sacramento)
> k <- ols_dsrvsp_plot(lm_fit2)
> k$outliers
# A tibble: 39 × 3
Observation `Fitted Values` `Deleted Studentized Residual`
<int> <dbl> <dbl>
1 153 360772.40 2.131717
2 154 381583.73 2.434828
3 157 383950.67 3.315315
4 158 515681.86 3.807551
5 173 267446.73 -2.016768
6 292 -33842.84 4.447093
7 294 148765.08 2.274949
8 313 218837.66 2.710143
9 321 299506.69 2.208636
10 322 293232.33 2.292741
# ... with 29 more rows
Warning message:
In getNamespace("grid") : reached elapsed time limit
> k$threshold
[1] 2 |
ols_dsrvsp_plot()should return the threshold value used to classify observations as outliers.