Hello,
I am fairly new to Stata and am having some trouble. I am trying to create a stacked bar graph with expenditure on my y-axis and age on my x-axis. I want to stack the percentage of spending on Medicaid and Medicare. I have tried different combinations of code but am having some trouble. Any help is greatly appreciated.
Code:
graph bar (mean) TotalEXP [pweight = weight], over (Age) over (Evermedicaid) over (Evermedicare) stack percentages blabel(bar) title(Figure 1: Average Health Expenditures by Age)
I am fairly new to Stata and am having some trouble. I am trying to create a stacked bar graph with expenditure on my y-axis and age on my x-axis. I want to stack the percentage of spending on Medicaid and Medicare. I have tried different combinations of code but am having some trouble. Any help is greatly appreciated.
Code:
graph bar (mean) TotalEXP [pweight = weight], over (Age) over (Evermedicaid) over (Evermedicare) stack percentages blabel(bar) title(Figure 1: Average Health Expenditures by Age)
Comment