Hi Statelist,
I have a few binary variables (0 and 1) and want to make bar graph over a categorical variable Z (takes 1 and 2) and the confidence intervals for each category.
Here's an example of my dataset:
the final graph I'm looking for is something like this:
I have a few binary variables (0 and 1) and want to make bar graph over a categorical variable Z (takes 1 and 2) and the confidence intervals for each category.
Here's an example of my dataset:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(x1 x2 x4 x3 x6 x5 z) 0 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 . . 1 1 1 0 0 . . 1 1 1 1 1 1 0 1 1 1 0 1 . . 2 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 2 1 1 0 0 . . 1 1 1 0 0 . . 1 1 1 0 1 . . 1 1 1 0 0 . . 1 1 1 0 1 . . 2 1 1 1 1 1 1 1 1 1 0 1 . . 2 1 1 1 1 1 0 1 1 1 0 0 . . 2 1 1 0 0 . . 1 1 1 1 1 0 1 2 1 1 1 1 1 1 2 1 1 0 1 . . 2 1 1 1 1 1 1 2 0 0 1 0 1 0 2 1 1 1 1 1 1 2 end label values z z label def z 1 "no", modify label def z 2 "yes", modify
Comment