I liked your suggestion, so I tried changing the input coding. Under Model Options -> Input Coding -> GLM.
With deviation coding the values are not the same:
Analysis of Maximum Likelihood Estimates
Parameter DF Estimate Error Chi-Square Pr > ChiSq Estimate Exp(Est)
M_DemAge 0 1 0.0741 0.0344 4.65 0.0311 1.077
Odds Ratio Estimates
Point Effect Estimate
M_DemAge 0 vs 1 1.160
With GLM coding, the values are the same. Thanks!!
Analysis of Maximum Likelihood Estimates
Parameter DF Estimate Error Chi-Square Pr > ChiSq Estimate Exp(Est)
M_DemAge 0 1 0.1389 0.0794 3.06 0.0802 1.149
Odds Ratio Estimates
Point Effect Estimate
M_DemAge 0 vs 1 1.149
It should be the same as your odds ratio table, and it should be for a specific level against reference table, assuming you've set the coding system to be the same.
In this case it looks like it's Level=0 against whatever your reference is.
If the variable is an indicator variable with 2 levels this makes sense.
If you're not getting the same as your odds ratio it's likely because you haven't specified the categorical variables to use the referential=PARAM coding system, but the GLM coding system.
I liked your suggestion, so I tried changing the input coding. Under Model Options -> Input Coding -> GLM.
With deviation coding the values are not the same:
Analysis of Maximum Likelihood Estimates
Parameter DF Estimate Error Chi-Square Pr > ChiSq Estimate Exp(Est)
M_DemAge 0 1 0.0741 0.0344 4.65 0.0311 1.077
Odds Ratio Estimates
Point Effect Estimate
M_DemAge 0 vs 1 1.160
With GLM coding, the values are the same. Thanks!!
Analysis of Maximum Likelihood Estimates
Parameter DF Estimate Error Chi-Square Pr > ChiSq Estimate Exp(Est)
M_DemAge 0 1 0.1389 0.0794 3.06 0.0802 1.149
Odds Ratio Estimates
Point Effect Estimate
M_DemAge 0 vs 1 1.149
Yeah, that's what I was trying to say in a roundabout way 🙂
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.