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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.