BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasnewbie12
Obsidian | Level 7

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 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SAS_Rob
SAS Employee

SURVEYREG and SURVEYLOGISTIC will only allow a single MODEL statement.

View solution in original post

3 REPLIES 3
Reeza
Super User

Have you tried multiple MODEL statements and that doesn't work?

sasnewbie12
Obsidian | Level 7

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. 

 

 

SAS_Rob
SAS Employee

SURVEYREG and SURVEYLOGISTIC will only allow a single MODEL statement.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is ANOVA?

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.

Discussion stats
  • 3 replies
  • 2861 views
  • 2 likes
  • 3 in conversation