BookmarkSubscribeRSS Feed
MariaD
Barite | Level 11

Hi folks,

 

'm using, for the first time a logistic model with cloglog link. I'm doing something similar to this example: https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_logistic_se...

 

My questions is, how could I calculate the impact on the probability when the cons variable increase? And how could I understand the importance of each variable in probability calculation?

 

My doubt is because we use the data expanded by day (or month in my case).  

 

Estimates.jpg

 

Thanks!

4 REPLIES 4
Ksharp
Super User

For your frist question, check ODDS Ratio  by using

model y=x /  exp ;

or

odds STATEMENT.

 

For your second question, the abs(Estimate)  is bigger ,the variable is more important .

MariaD
Barite | Level 11

Thanks @Ksharp  for your help.

 

So for the second question, I understand that for this kind of analysis I need to exclude (don't considerate) the estimated value for each day (or month in my case). in other words, for the example of the beetle analysis I only evaluate the ABS(estimate) of the variables sex and cons. Is it correct? And how about classification variables? Because in this case I have an estimated value for each dummy. 

Ksharp
Super User

I don't know. It obviously you take variable DAY as a class variable.

StatDave
SAS Super FREQ

When you say you want the impact of a predictor on the response, that suggests you want the marginal effect as discussed in this note. If so, you can fit the model and estimate the marginal effects using the Margins macro as discussed there. For the documentation example you refer to, this call of the macro estimates the marginal effect for the CONC predictor:

 

%Margins(data     = days,
         class    = day,
         freq     = freq,
         response = y,
         roptions = event='1',
         dist     = binomial,
         model    = day sex conc,
         link     = cll,
         modelopts= noint,
         effect   = conc, 
         options  = cl  )

By making SEX a CLASS variable in the model, this call provides the marginal effect of SEX as the difference in the predictive margins for each SEX level:

%Margins(data     = days,
         class    = day sex,
         freq     = freq,
         response = y,
         roptions = event='1',
         dist     = binomial,
         model    = day sex conc,
         link     = cll,
         modelopts= noint,
         margins  = sex, 
         options  = diff cl )

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
  • 4 replies
  • 1174 views
  • 1 like
  • 3 in conversation