Forecasting using SAS Forecast Server, SAS/ETS, and more

how to test the logisctic model

Reply
N/A
Posts: 0

how to test the logisctic model

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.
Contributor
Posts: 35

Re: how to test the logisctic model

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
N/A
Posts: 0

Re: how to test the logisctic model

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
Ask a Question
Discussion stats
  • 2 replies
  • 292 views
  • 0 likes
  • 2 in conversation