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-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

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

 

Register now!

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
  • 1421 views
  • 2 likes
  • 3 in conversation