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.

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
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
  • 2078 views
  • 2 likes
  • 3 in conversation