Hi,
I would like to calculate a survey mean from a variable (VAR1) only with values above zero. Is this the right syntax?
PROC SURVEYMEANS DATA=sample1 MEAN SUM VARMETHOD=BRR;
DOMAIN DHHDDRI;
WHERE VAR1 ne 0;
VAR VAR1;
WEIGHT WTS_P;
REPWEIGHTS BSW1-BSW500;
RUN;
"only with values above zero" translates to
WHERE VAR1 > 0;
That should do it.
"only with values above zero" translates to
WHERE VAR1 > 0;
That should do it.
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 lock in 2025 pricing—just $495!
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.