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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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