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 upCook's d bar plot should return the threshold used in the plot #13
Comments
|
> library(olsrr)
> library(caret)
> data("Sacramento")
> lm_fit2 <- lm(price ~ beds + baths + log(sqft), data = Sacramento)
> k <- ols_cooksd_barplot(lm_fit2)
> k$outliers
# A tibble: 59 × 2
Observation `Cook's Distance`
<int> <dbl>
1 19 0.004925816
2 48 0.006469155
3 69 0.009081726
4 74 0.005898704
5 109 0.007078976
6 121 0.005087501
7 153 0.005863605
8 154 0.007676384
9 155 0.004586336
10 156 0.004469663
# ... with 49 more rows
> k$threshold
[1] 0.004 |
ols_cooksd_barplot()does not return the threshold value used in the plot.