BookmarkSubscribeRSS Feed
BTAinRVA
Quartz | Level 8
Does anyone know if it is possible to control the direction of misclassification in a logistic regression model? I would rather misclassify a good customer as a bad customer rather than misclassify a bad customer as a good customer

Thanks for any insight!
1 REPLY 1
FeloniousPunk
Calcite | Level 5

The assigned classification is dependent on the probabilities generated by the model. By default, if the probability is greater than .50, the classification is issued in the affirmative.

proc logistic data=CustomerData outmodel=logitModel;
 model Customer(Event='Good') = ShopFrequency MoneySpent;
 score data=NewCustomerData out=NewCustomerData;
run;

In this example, predicted values of I_Customer = 'Good' when P_Good > .50.

You can reassign the predicted value I_Customer by processing the data through another data step and requiring a lower threshold.

For example:

 

data NewCustomerData;
	set NewCustomerData;
	if P_Customer > .4 then I_Customer = 'Good';
	else I_Customer = 'Bad';
run;

I don't think artificially lowering the classification threshold has a methodological justification, but it sounds like this is a low-stakes application. 

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
  • 2749 views
  • 0 likes
  • 2 in conversation