BookmarkSubscribeRSS Feed
SidKh
Calcite | Level 5

Hi all,

 

Can someone help and explain the  following question?

 

This question will ask you to provide missing code segments. A logistic regression model was fit on a data set where 40% of the outcomes were events (TARGET=1) and 60% were non-events (TARGET=0).

The analyst knows that the population where the model will be deployed has 5% events and 95% non-events. The analyst also knows that the company's profit margin for correctly targeted events is nine times higher than the company's loss for incorrectly targeted non-event.

proc logistic data = LOANS descending;
 model Purch = Inc Edu;
 score data = LOANS_V out = LOANS_VS priorevent= (insert X here);
 run;
data LOANS_VS; set LOANS_VS;
 Solicit = P_1 > (insert Y here);
run;
What X and Y values should be added to the program to correctly score the data?
 
1 REPLY 1
PaigeMiller
Diamond | Level 26

We don't do your homework for you in this forum.

 

Give the problem a try yourself, if you get the SAS code wrong, show us your code and then we can help.

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1852 views
  • 1 like
  • 2 in conversation