Hello.
I want to get a table as follows: (this is the proc means results)
however, when I used proc surveymeans, code are below
proc surveymeans data=nh.outcomes; STRATA sdmvstra; CLUSTER sdmvpsu; var BMXBMI; CLASS alpha16; WEIGHT glucwt4yr; domain eligible; run;
I only get the table like this:
could you please tell what went wrong?
Thank you!
I think the problem with the first code version is the BY statement. It requests a separate analysis for each value of alpha16. Try keeping the DOMAIN eligible statement but dropping the BY statement.
You will also need the MISSING option in the proc surveymeans statement, otherwise your eligible=2 domain will be ignored.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.