Dear all,
I would like to realize a stacked graph bar showing the different values of each category of my variable of interest.
I provide you some fictious data that resemble mine:
I tried the following:
tw (bar cumu n if n == 1) (bar cumu n if n == 3) (bar cumu n if n == 2) (bar cumu n if n == 1)
but then I obtain 4 different bars (instead of stacked one).
Do you have any suggestion?
Thanks a lot, best, G
I would like to realize a stacked graph bar showing the different values of each category of my variable of interest.
I provide you some fictious data that resemble mine:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float cumu byte n 17.357025 1 27.18098 2 29.4684 3 29.8549 4 end
tw (bar cumu n if n == 1) (bar cumu n if n == 3) (bar cumu n if n == 2) (bar cumu n if n == 1)
but then I obtain 4 different bars (instead of stacked one).
Do you have any suggestion?
Thanks a lot, best, G
Comment