BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
drdee
Obsidian | Level 7

Hi, 

How to I make a residuals plot for a logit model? I only found this link. But I would like to plot the residuals against one of the independent variables, not just "by case number". What options do I use?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ
It's always necessary to see the syntax information in the procedure documentation. There are several types of residuals. Adding this would save the Pearson and deviance residuals in a data set called MyRes.

output out=myres reschi=rc resdev=rd;

View solution in original post

3 REPLIES 3
StatDave
SAS Super FREQ

You can use the options in the OUTPUT statement to save any residuals that you like. Then, with the resulting data set, you can construct the plot you want using PROC SGPLOT.

drdee
Obsidian | Level 7

Thanks, sounds good. Can you provide some details on how to output residuals?

StatDave
SAS Super FREQ
It's always necessary to see the syntax information in the procedure documentation. There are several types of residuals. Adding this would save the Pearson and deviance residuals in a data set called MyRes.

output out=myres reschi=rc resdev=rd;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 1246 views
  • 3 likes
  • 2 in conversation