SAS_Institute
A00-240 · Question #12
A00-240 Question #12: Real Exam Question with Answer & Explanation
Sign in or unlock A00-240 to reveal the answer and full explanation for question #12. The question stem and answer options stay visible for context.
Question
Assume a $10 cost for soliciting a non-responder and a $200 profit for soliciting a responder. The logistic regression model gives a probability score named P_R on a SAS data set called VALID. The VALID data set contains the responder variable Pinch, a 1/0 variable coded as 1 for responder. Customers will be solicited when their probability score is more than 0.05. Which SAS program computes the profit for each customer in the data set VALID?
Options
- Adata VALID; set VALID; Profit = (P_R > .05)Purch200 - (P_R > .05)*(1 - Purch)*10; run;
- Bdata VALID; set VALID; Profit = (P_R <= .05)Purch200 - (P_R > .05)*(1 - Purch)*10; run;
- Cdata VALID; set VALID; if P_R > .05; Profit = (P_R > .05)Purch200 - (P_R > .05)*(1 - Purch)*10; run;
- Ddata VALID; set VALID; if P_R > .05; Profit = (P_R > .05)Purch200 + (P_R <= .05)*(1 - Purch)*10; run;
Unlock A00-240 to see the answer
You've previewed enough free A00-240 questions. Unlock A00-240 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.