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.
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.