Dear All,
I want to make a bar graph of a binary variable only showing one of its value's percentage within each category of wealth.
graph bar ut_preg [pweight = wt] , over(wealth)stack blabel(bar, format(%4.2f)) ytitle(Percent) //
Here ut_preg is the binary 0 - Planned and 1 - unplanned pregnancy and wealth is a categorical variable taking 5 values.
How to make a graph of percentage?
I want to make a bar graph of a binary variable only showing one of its value's percentage within each category of wealth.
graph bar ut_preg [pweight = wt] , over(wealth)stack blabel(bar, format(%4.2f)) ytitle(Percent) //
Here ut_preg is the binary 0 - Planned and 1 - unplanned pregnancy and wealth is a categorical variable taking 5 values.
How to make a graph of percentage?
Comment