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 upDFFITs plot should return the threshold value #15
Comments
|
> library(olsrr)
> library(caret)
> data("Sacramento")
> lm_fit2 <- lm(price ~ beds + baths + log(sqft), data = Sacramento)
> k <- ols_dffits_plot(lm_fit2)
> k$outliers
# A tibble: 59 × 2
Observation DFFITs
<int> <dbl>
1 19 0.1404691
2 48 -0.1609518
3 69 -0.1907771
4 74 -0.1536721
5 109 -0.1682443
6 121 -0.1427501
7 153 0.1534405
8 154 0.1756946
9 155 0.1354857
10 156 0.1338164
# ... with 49 more rows
Warning message:
In dontCheck(fnname) : reached elapsed time limit
> k$threshold
[1] 0.13 |
ols_dffits_plot()should return the threshold value used to classify observations as outliers.