BookmarkSubscribeRSS Feed
iuri_leite
Fluorite | Level 6

Dear All,

I have a simple question that I do not know to define precisely. Suppose I run a logistic regression with a explanatory ordinal variable with for categories, with the first category as refference. Then I agregated the first category with the second (0) and the third with the fouth (1), so that I have now a dummy variable. I run another model. Why is that model a nested one?

If it is nested, how do I define what is being tested. I had B1, B2 and B3 as parameter. Now I have one B measures the effect of the third and fourth category compared to the agregation of the two first categories.

Thank you in advance.

Best regards,

Iuri

 

4 REPLIES 4
StatDave
SAS Super FREQ

It is not nested. You've just created a new, dichotomized version of the original variable which I assume you are using in place of the original variable. The new variable tells you the combined effect of two levels compared to the combined effect effect of the other two levels. 

iuri_leite
Fluorite | Level 6
Thanks for the answer. In fact, it is clear to me that it is not nested.
What I do not uderstand is the use of the log-likelihood ratio test
should it onlly be used for nested models?
Thanks again.
Regards?
Iuri

StatDave
SAS Super FREQ
Oh, you mean "nested" in that sense. Yes, the likelihood ratio test is only for nested models. You could use a criterion like AICC to compare such models.
iuri_leite
Fluorite | Level 6
Sorry to bother you again.

My point is that in the Hosmer and Lemeshow book, they use the likelihood
ratio test in a very similar way.
I found it strange. They aggregate the four categories of a variable into
two new categories. And then they compared the two models using the
log-likelihood ratio test.

Regards

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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