DATA Step, Macro, Functions and more

Goodness of fit for surveylogistic

Reply
Occasional Contributor
Posts: 14

Goodness of fit for surveylogistic

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
PROC Star
Posts: 1,401

Re: Goodness of fit for surveylogistic

Do you have 57.000 degrees of freedom in your model?

Occasional Contributor
Posts: 14

Re: Goodness of fit for surveylogistic

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

PROC Star
Posts: 1,401

Re: Goodness of fit for surveylogistic

what does your code look like?

Occasional Contributor
Posts: 14

Re: Goodness of fit for surveylogistic

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;
Super User
Posts: 10,850

Re: Goodness of fit for surveylogistic

aggregate=(X1 X2 X3 X4  X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17) ;
====>
aggregate ;
Super User
Posts: 10,850

Re: Goodness of fit for surveylogistic

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

Occasional Contributor
Posts: 14

Re: Goodness of fit for surveylogistic

Okay, for both statistic or for any of them?

Super User
Posts: 10,850

Re: Goodness of fit for surveylogistic

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

Ask a Question
Discussion stats
  • 8 replies
  • 121 views
  • 2 likes
  • 3 in conversation