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 upStandardized residual chart should return the threshold value #18
Comments
|
> library(olsrr)
> library(caret)
> data("Sacramento")
> lm_fit2 <- lm(price ~ beds + baths + log(sqft), data = Sacramento)
> k <- ols_srsd_chart(lm_fit2)
> k$outliers
Observation Studentized Residual
1 153 2.127658
2 154 2.428389
3 157 3.297610
4 158 3.780160
5 173 -2.013443
6 292 4.402775
7 294 2.269848
8 313 2.700926
9 321 2.204036
10 322 2.287501
11 329 3.007781
12 331 2.136901
13 332 3.524647
14 333 4.426140
15 334 7.113351
16 366 -2.270632
17 382 -2.149663
18 511 2.003251
19 519 2.438491
20 542 2.170548
21 543 3.565425
22 548 2.933827
23 549 2.487219
24 550 3.522095
25 551 4.064036
26 552 2.744104
27 553 3.674012
28 612 -2.216630
29 705 -2.322372
30 781 2.164670
31 784 2.226266
32 794 2.271718
33 801 4.024805
34 803 4.239164
35 807 2.955036
36 808 2.939765
37 811 2.238219
38 813 4.544811
39 814 4.112154
Warning message:
In grid.Call.graphics(C_setGPar, temp) : reached elapsed time limit
> k$threshold
[1] 2 |
ols_srsd_chart()should return the threshold value used to classify observations as outliers.