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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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