Hi,
I actually wanted testing the goodness of fit of my model developed from PROC SURVEYLOGISTIC but since it doesn't give such options, I opted for PROC LOGISTIC just to test the goodness of fit of my model it gave me the output below. can I say my model is adequate?
SAS Output
Do you have 57.000 degrees of freedom in your model?
Not sure where the 57000 is coming from but my observations are 66000
what does your code look like?
PROC LOGISTIC DATA= risk ;
CLASS X1 X2 X3 X5 X6 X7 X8 X9 X10 X13 X14 X15 X16 X17/param=glm;
MODEL Y (Event = '1')=X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17/
LINK=LOGIT expb LACKFIT scale=none
aggregate=(X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17) ;
RUN;QUIT;
aggregate=(X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17) ;
====>
aggregate ;
If your model looks good, Value/DF should be near 1 .
Okay, for both statistic or for any of them?
Good question. Should be both, but I would accept any of it .
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.