Programming the statistical procedures from SAS

How do I get PROC surveymeans output in percentage terms?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

How do I get PROC surveymeans output in percentage terms?

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,

 

Statistics Variable Label N Mean Std Error of Mean 95% CL for Mean cursmokr
Current smoking488470.2284340.0041060.220387060.23648169

Accepted Solutions
Solution
‎07-27-2016 05:14 PM
Occasional Contributor
Posts: 6

Re: How do I get PROC surveymeans output in percentage terms?

ballardw,

This is a timesaver!

Thank you very much,

View solution in original post


All Replies
Grand Advisor
Posts: 10,066

Re: How do I get PROC surveymeans output in percentage terms?

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.

Solution
‎07-27-2016 05:14 PM
Occasional Contributor
Posts: 6

Re: How do I get PROC surveymeans output in percentage terms?

ballardw,

This is a timesaver!

Thank you very much,
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 148 views
  • 2 likes
  • 2 in conversation