Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Plotting multiple bar graphs with CI

    I want to plot crude and age-adjusted rates with CI on a single graph. I'm using the following code to generate the rates. Any help is appreciated.

    Thanks


    HTML Code:
    foreach var of varlist copd heart cancer  diabetes hypert asthma {
        svy, subpop (if age>=18): prop `var', over (status) percent cformat(%9.1f)    //unadjusted rates
        svy, subpop (if age>=18): prop `var', stdize(agegrp5) stdweight(std_wt5) over (status) percent cformat(%9.1f)    //age-adjusted rates
    }
Working...
X