BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have some data with historical binary target and it's risk driver. How can I in sas segment risk driver onto groups with (almost) homogeneous values of my target. (The mean value of the target within a segment should be around it's actual values, but segments should be differ from each other)
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
It seems like you could use something like the Hosmer & Lemeshow test for goodness of fit. It works with predicted risk under the logistic regression model. H&L is not a very powerful test, so I prefer to use a visual analogue to it. Sort the predicted scores, divide into deciles (quintiles if the N is small), and then plot the midpoint of each decile against the proportion of positive outcomes for the observations in that decile.

If your risk score fits well the line through those 10 points will be reasonably straight. It's basically testing the reliability of your risk driver(s).

Doc Muhlbaier
Duke
deleted_user
Not applicable
Thanks, that is what I am doing so far. Just thought that somebody maybe automated this procedure in sas. 🙂

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!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 832 views
  • 0 likes
  • 2 in conversation