SAS code:
proc surveymeans data = datum;
strata vstratum ;
weight cpwt;
var cursmokr;
domain sex;
run;
My Output is shown below. How do I get the mean, std error, and the 95% CI in percentage terms?
Thanks,
Current smoking | 48847 | 0.228434 | 0.004106 | 0.22038706 | 0.23648169 |
Easiest would be to generate an output data set from the results and then print or display with a report procedure such as Report or Tabulate using a PERCENT format for the appropriate variables.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.