After following the example given here: https://www.rdocumentation.org/packages/survey/versions/4.1-1/topics/svyhist for `svyboxplot` I get the result in the attached image. This is a box plot of the `enroll` variable from the stratified dataset `apistrat`, grouped by `stype`: E (elementary school), M (middle school) and H (high school). If I use the `svyby` function to group the data by `stype` and find the mean for each group, I get this result:
> svyby(~enroll, ~stype, dstrat, svymean) stype enroll se E E 416.78 16.41740 H H 1320.70 91.70781 M M 832.48 54.52157 Clearly the means are very different from each other. Then why don’t the box plots show this? I don’t know how to interpret the plot. Could someone please offer some insight on this? Thank you! ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.