BookmarkSubscribeRSS Feed
khalidamin
Obsidian | Level 7

My genius folks,

 

I am trying to run the same PROC LOGISTIC for 25 variables separately. I am sure there are ways to do this by not writing 25 separate models for each variable.

 

I would appreciate if someone could help me to find a way to run a single PROC LOGISTIC for all variable.

4 REPLIES 4
khalidamin
Obsidian | Level 7

mixed of both types of variable.

Reeza
Super User

Well, you'll have to deal with them separately, since categorical variables also need to be included in the CLASS statement. 

 

Ksharp
Super User

CALL EXECUTE I guess.

 

data _null_;

 set sashelp.vcolumn(where=(libname='WORK' and memname='HAVE')) ;

 call execute(...........)

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1334 views
  • 0 likes
  • 3 in conversation