| Library: | plot |
| See also: | grboxgrouped |
| Quantlet: | plotboxgrouped | |
| Description: | Generates a boxplots for grouped data with mean line (dotted) and median line (solid). |
| Usage: | plotboxgrouped (ug, og, n {, col}) | |
| Input: | ||
| ug | p x 1 sorted vector of lower borders of group | |
| og | p x 1 sorted vector of upper borders of group | |
| n | p x 1 vector of absolute or relative frequencies of group | |
| col | color | |
library ("plot")
// structure of age of women in west germany 31.12.95
ug1 = #(0, 15, 40, 65)
og1 = #(15, 40, 65, 80)
t1 = #(5326, 11911, 10725, 6735)
// structure of age of women in east germany 31.12.95
ug2 = #(0, 15, 40, 65)
og2 = #(15, 40, 65, 78)
t2 = #(1119, 2384, 2380, 1412)
// generate plots
plotboxgrouped (ug1~ug2, og1~og2, t1~t2)
shows a boxplot for grouped data
| Library: | plot |
| See also: | grboxgrouped |