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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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