BookmarkSubscribeRSS Feed
sammmy
Obsidian | Level 7

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


Capture.PNG
8 REPLIES 8
PeterClemmensen
Tourmaline | Level 20

Do you have 57.000 degrees of freedom in your model?

sammmy
Obsidian | Level 7

Not sure where the 57000 is coming from but my observations are 66000

PeterClemmensen
Tourmaline | Level 20

what does your code look like?

sammmy
Obsidian | Level 7
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;
Ksharp
Super User
aggregate=(X1 X2 X3 X4  X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17) ;
====>
aggregate ;
Ksharp
Super User

If your model looks good, Value/DF should be near 1 .

sammmy
Obsidian | Level 7

Okay, for both statistic or for any of them?

Ksharp
Super User

Good question. Should be both, but I would accept any of it .

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 2144 views
  • 2 likes
  • 3 in conversation