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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.