I have variable called rx_day which takes values rom 0 to 90 days. I want to plot a histogram to show the distribution of values. I used this command
histogram rx_day, percent fcolor(dknavy)
(bin=52, start=0, width=1.7307692)
how can I show the cumulative proportion from 0-30 , 0-60, 0-90 , as described in the fourth column when I use the tab command ??
rx_day | Freq. Percent Cum.
------------+-----------------------------------
0 | 5,433 3.16 3.16
1 | 9,832 5.72 8.88
2 | 9,499 5.53 14.41
3 | 10,316 6.00 20.41
4 | 10,921 6.35 26.76
5 | 9,533 5.55 32.31
6 | 8,792 5.12 37.43
7 | 9,066 5.27 42.70
8 | 6,124 3.56 46.26
9 | 4,979 2.90 49.16
10 | 4,909 2.86 52.02
histogram rx_day, percent fcolor(dknavy)
(bin=52, start=0, width=1.7307692)
how can I show the cumulative proportion from 0-30 , 0-60, 0-90 , as described in the fourth column when I use the tab command ??
rx_day | Freq. Percent Cum.
------------+-----------------------------------
0 | 5,433 3.16 3.16
1 | 9,832 5.72 8.88
2 | 9,499 5.53 14.41
3 | 10,316 6.00 20.41
4 | 10,921 6.35 26.76
5 | 9,533 5.55 32.31
6 | 8,792 5.12 37.43
7 | 9,066 5.27 42.70
8 | 6,124 3.56 46.26
9 | 4,979 2.90 49.16
10 | 4,909 2.86 52.02
Comment