Hi
When running proc survey means or proc survey freq, we can check multiple variable means/frequencies/chi squares by listing them out in the vars or tables statement.
Proc Surveyfreq data=sample;
cluster clstr;
stratum str;
weight wt;
tables subset*color* (shape size weight number location)/ chisq;
run;
Is there anything similar I can do with a proc surveryreg or proc surveylogistic to run multiple univariate regression or logistic models by way of the same proc without having to write the proc again ?
Thank you
SURVEYREG and SURVEYLOGISTIC will only allow a single MODEL statement.
Have you tried multiple MODEL statements and that doesn't work?
proc surveyreg data=mydata;
stratum str;
cluster clstr;
domain set;
weight wt;
model age=index;
model height = index;
model color = index;
run;
I ran the above statement. The log states: Multiple model statements. only the first model statement will be used.
SURVEYREG and SURVEYLOGISTIC will only allow a single MODEL statement.
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.