BookmarkSubscribeRSS Feed
mandkhoie
Calcite | Level 5


Hello,

I am conducting a survey design based analysis using SURVEYLOGISTIC. I am attempting to obtain standardized Pearsons and standardized deviance residuals to conduct model diagnostics. However, it appears SURVEYLOGISTIC doesn't have these features. Alternatively, I have tried running the model using PROC LOGISTIC and the standardized residuals range between -2 to +16 (that is not good but I am not sure doing diagnostics using PROC LOGISTIC is appropriate). I would like to check if I would get the same standardized results using SURVEYLOGISTIC. Any suggestions or help would be great. Thank you.

proc surveylogistic data = temp;

class Y(ref="NO") X1(ref=FIRST) X2 (ref= FIRST) /PARAM=GLM;

model Y = X1 X2 /link=logit ;

WEIGHT normweight;

output out=out p=predicted stdresdev=stdresmodfs stdreschi=s;

; run;

ERROR 22-322: Syntax error, expecting one of the following: ;, /, CUMPRED, L,


              LOWER, OUT, P, PRED, PREDICTED, PREDPROBS, PROB, STDXBETA, U,


              UPPER, XBETA.


1 REPLY 1
SteveDenham
Jade | Level 19

Looks like a post processing approach is needed.  If the output dataset includes PRED, XBETA and STDXBETA you can calculate the standardized deviance residua asl (observed - PRED)/STDXBETA, and work from there I think.

Steve Denham

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1786 views
  • 4 likes
  • 2 in conversation