What is going on here? According to the graph box documentation whiskers should be ended with lower and upper adjacent value, meanwhile:
clear all
input v
32
55
60
61
62
64
64
68
73
75
75
76
78
78
79
79
80
80
82
83
84
85
88
90
92
93
95
98
end
list
qui su v, d
local lower_adjacent_value `r(p25)' - (3/2)*(`r(p75)'-`r(p25)')
local upper_adjacent_value `r(p75)' + (3/2)*(`r(p75)'-`r(p25)')
di `lower_adjacent_value'
di `upper_adjacent_value'
graph hbox v , ylabel(30(10)120) ///
text(38.25 25 "L") ///
text(112.25 25 "U")
* And:
qui su v, d
graph hbox v , text(`r(p1)' 25 "x") ///
text(`r(p5)' 25 "L") ///
text(`r(p99)' 25 "U")
* Despite the problem described above, I am still confused why the below is not working:
qui su v, d
local lower_adjacent_value `r(p25)' - (3/2)*(`r(p75)'-`r(p25)')
local upper_adjacent_value `r(p75)' + (3/2)*(`r(p75)'-`r(p25)')
di `lower_adjacent_value'
di `upper_adjacent_value'
graph hbox v , ylabel(30(10)120) ///
text(`lower_adjacent_value' 25 "L") ///
text(`upper_adjacent_value' 25 "U")
clear all
input v
32
55
60
61
62
64
64
68
73
75
75
76
78
78
79
79
80
80
82
83
84
85
88
90
92
93
95
98
end
list
qui su v, d
local lower_adjacent_value `r(p25)' - (3/2)*(`r(p75)'-`r(p25)')
local upper_adjacent_value `r(p75)' + (3/2)*(`r(p75)'-`r(p25)')
di `lower_adjacent_value'
di `upper_adjacent_value'
graph hbox v , ylabel(30(10)120) ///
text(38.25 25 "L") ///
text(112.25 25 "U")
* And:
qui su v, d
graph hbox v , text(`r(p1)' 25 "x") ///
text(`r(p5)' 25 "L") ///
text(`r(p99)' 25 "U")
* Despite the problem described above, I am still confused why the below is not working:
qui su v, d
local lower_adjacent_value `r(p25)' - (3/2)*(`r(p75)'-`r(p25)')
local upper_adjacent_value `r(p75)' + (3/2)*(`r(p75)'-`r(p25)')
di `lower_adjacent_value'
di `upper_adjacent_value'
graph hbox v , ylabel(30(10)120) ///
text(`lower_adjacent_value' 25 "L") ///
text(`upper_adjacent_value' 25 "U")
Comment