Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ols_plot_resid_stud() fails to plot outliers due to y-axis range #155

Closed
PsychlytxTD opened this issue Feb 23, 2020 · 0 comments
Closed
Assignees
Labels

Comments

@PsychlytxTD
Copy link

ols_plot_resid_stud() fails to plot the very cases it is designed to identify.

Changing the y-axis scale range fixes the problem - i.e. p + scale_y_continuous(limits=c(0,20))
p$data

Below is the ols_plot_resid_stud() data object. As you can see, case 64 is an outlier yet fails to appear in the plot. I would consider this a pretty serious issue.

obs          dsr   color fct_color txt

1 1 1.008124220 normal normal NA
2 2 -1.142432758 normal normal NA
3 3 -0.545448929 normal normal NA
4 4 -0.888230928 normal normal NA
5 5 -0.831623872 normal normal NA
6 6 -0.206215347 normal normal NA
7 7 -0.425650825 normal normal NA
8 8 -1.496841621 normal normal NA
9 9 -1.207579079 normal normal NA
10 10 1.038512290 normal normal NA
11 11 -1.041981348 normal normal NA
12 12 0.482029335 normal normal NA
13 13 -0.139997907 normal normal NA
14 14 0.467099410 normal normal NA
15 15 -0.106289008 normal normal NA
16 16 1.041529462 normal normal NA
17 17 1.233399768 normal normal NA
18 18 -1.361944652 normal normal NA
19 19 -0.303624398 normal normal NA
20 20 -0.798701453 normal normal NA
21 21 0.080595536 normal normal NA
22 22 -0.054438348 normal normal NA
23 23 1.421640426 normal normal NA
24 24 -1.034743274 normal normal NA
25 25 0.203495092 normal normal NA
26 26 0.805402324 normal normal NA
27 27 0.580473302 normal normal NA
28 28 2.545667637 normal normal NA
29 29 -1.359356085 normal normal NA
30 30 0.520649042 normal normal NA
31 31 -0.745765494 normal normal NA
32 32 -0.936046366 normal normal NA
33 33 0.712852354 normal normal NA
34 34 0.948068513 normal normal NA
35 35 1.632742222 normal normal NA
36 36 0.079908658 normal normal NA
37 37 -0.337666540 normal normal NA
38 38 -0.603381267 normal normal NA
39 39 -0.136638215 normal normal NA
40 40 0.621610037 normal normal NA
41 41 1.040788499 normal normal NA
42 42 -2.724628779 normal normal NA
43 43 1.478182389 normal normal NA
44 44 0.283747061 normal normal NA
45 45 0.439957777 normal normal NA
46 46 -1.420681552 normal normal NA
47 47 -0.417247096 normal normal NA
48 48 -1.319427216 normal normal NA
49 49 -0.622133927 normal normal NA
50 50 1.033322080 normal normal NA
51 51 -0.618721500 normal normal NA
52 52 0.820430449 normal normal NA
53 53 -0.798066730 normal normal NA
54 54 -0.482758393 normal normal NA
55 55 0.194846187 normal normal NA
56 56 -1.210784663 normal normal NA
57 57 -0.658350318 normal normal NA
58 58 -0.778402108 normal normal NA
59 59 1.043764644 normal normal NA
60 60 0.467522667 normal normal NA
61 61 0.061982415 normal normal NA
62 62 -0.152188181 normal normal NA
63 63 -0.923235297 normal normal NA
64 64 3.366598643 outlier outlier 64
65 65 -1.403090340 normal normal NA
66 66 1.719550729 normal normal NA
67 67 -0.003233689 normal normal NA
68 68 0.038531840 normal normal NA
69 69 1.380084507 normal normal NA
70 70 2.278180889 normal normal NA
71 71 0.713683453 normal normal NA
72 72 0.954819539 normal normal NA
73 73 0.563221877 normal normal NA
74 74 -0.159809443 normal normal NA
75 75 0.406416287 normal normal NA
76 76 -1.342469992 normal normal NA
77 77 0.599576498 normal normal NA
78 78 -1.272205980 normal normal NA
79 79 -1.137149541 normal normal NA
80 80 -0.439950793 normal normal NA
81 81 1.180657165 normal normal NA
82 82 0.542029285 normal normal NA
83 83 -1.265966227 normal normal NA
84 84 -1.353267355 normal normal NA
85 85 0.258367113 normal normal NA
86 86 0.155804638 normal normal NA
87 87 1.937017884 normal normal NA
88 88 -2.058256049 normal normal NA
89 89 0.649239732 normal normal NA
90 90 -0.369584678 normal normal NA
91 91 -1.741074793 normal normal NA
92 92 -0.413772975 normal normal NA
93 93 -0.323501263 normal normal NA
94 94 0.931821851 normal normal NA
95 95 0.079576499 normal normal NA
96 96 0.529413957 normal normal NA
97 97 -1.420443030 normal normal NA
98 98 0.480874016 normal normal NA
99 99 -0.286359514 normal normal NA
100 100 0.604526161 normal normal NA
101 101 -0.717118369 normal normal NA
102 102 -0.080054693 normal normal NA
103 103 1.155994114 normal normal NA
104 104 0.992135254 normal normal NA
105 105 -0.796368387 normal normal NA
106 106 0.307812569 normal normal NA
107 107 0.133793543 normal normal NA
108 108 0.017495555 normal normal NA
109 109 0.040118892 normal normal NA
110 110 -0.156656631 normal normal NA


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants