BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am a new SAS user from Viet Nam, I try the logistic regression, I have built the model & I want to test the accuracy of this model by using other data set, but I don't how to do it.
2 REPLIES 2
datalligence
Fluorite | Level 6
I guess you are talking about classifying new observations. In proc logistic, use the outmodel option. This saves the fitted model information in a data set. For example,

proc logistic data=training_data outmodel=mylib.Fitted_Model;
....
....

Use the above data Fitted_Model to model your new dataset,

proc logistic noprint inmodel=mylib.Fitted_Model;
score data=New_Data out=Scored_Data;
....

Scored_Data will have the data and the predicted values.

Romakanta
deleted_user
Not applicable
You can use Lift charts.

Lift charts are visual aids for measuring model performance. They consist of a lift curve and a baseline. The greater the area between the lift curve and the baseline, the better the model.

----
Calculate the model score in the other data set. Sort it by score and make 10 deciles.. Find out the sum of response and make the lift chart..

Regards
Vinux aka Richie

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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