BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Dear all,

I want to get -2LogL of the null model using proc logistic. I thought there are two ways to do that.

1) Run the model without specifying any independent variable, i.e.

proc logistic data = mydata descending;model youtcome = /firth;run;

In the output, I found:

Model Convergence Status

Convergence criterion (GCONV=1E-8) satisfied.

-2 Log L = 38.858

2) Run the model by specifying independent variables, and use the model fit
statistics in the Intercept Only column. For example:

proc logistic data = mydata descending; model youtcome = weight/firth; run;

In the output, I found:
Model Convergence Status
Convergence criterion (GCONV=1E-8) satisfied.
Model Fit Statistics

Criterion Intercept Only Intercept and Covariates
AIC 31.570 31.805
SC 33.790 36.244
-2 Log L 29.570 27.805


Why the -2LogL in the Intercept Only column (29.570) is different from what I got from the first method (38.858)? And if I specify different independent variables, the model fit statistics in the Intercept Only column also vary. So what does "Intercept Only" mean? And which one is the correct null model fit statistics?

If I turn off the "Firth" option, the two null model fit statistics (-2logL) are the same. But the problem is that my data has quasi-complete problem and "Firth" should give me more reliable results.

Thanks!

koko

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 0 replies
  • 1729 views
  • 0 likes
  • 1 in conversation