BookmarkSubscribeRSS Feed
HM3
Calcite | Level 5 HM3
Calcite | Level 5

I want to do a logistic regression where there are many indepedent varables. How to

  1. write them all varaibles ?
  2. write a subset of all the variables?
  3. How to know which variables are imp for my calculations?
  4. Can VIF be done in logistic regression ?

Pl guide.

 

Regards

 

3 REPLIES 3
Reeza
Super User

RE 1/2

To list multiple or select variables you can use variable lists.

Read the documentation that illustrates how you can reference multiple variables at once.

 

http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#p0wphcpsfgx6o7n1sjtq...

 

RE 3

Look at the P-Value along with effect size to determine if a variable is significant

 

RE 4

I don't know if it does, but you can use PROC REG to calculate VIF first if required.

Ksharp
Super User
How to write them all varaibles ? Use variable list method : model y=FirstVariable -- LastVariable; write a subset of all the variables? Ditto. How to know which variables are imp for my calculations? Check ANOVA Table and ODDS Ratio. The biggest ODDS Ratio should be the most important variable. Can VIF be done in logistic regression ? No. You can't . But you can use SELECTION=STEPWISE to pick up the best sub-model.
Ksharp
Super User
How to write them all varaibles ?
 Use variable list method : model y=FirstVariable -- LastVariable; 

write a subset of all the variables? 
Ditto. 

How to know which variables are imp for my calculations?
 Check ANOVA Table and ODDS Ratio. 
The biggest ODDS Ratio should be the most important variable. 


Can VIF be done in logistic regression ? 
No. You can't . But you can use SELECTION=STEPWISE to pick up the best sub-model.

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
  • 2241 views
  • 0 likes
  • 3 in conversation