In a SAS Viya pipeline, PROC HPLOGISTIC is used to build a binary classification model. The analyst wants to obtain predicted probabilities for the positive class. Which output statement is correct?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you want the OUTPUT statement with P=pred_prob, because in PROC HPLOGISTIC that writes the predicted probability for the positive class into the scored dataset. The other choices use the wrong statement or the wrong option name.
Full Explanation
The correct choice is the OUTPUT statement with P=pred_prob, because in PROC HPLOGISTIC the OUTPUT statement with P= writes the predicted probability to the output dataset: OUTPUT OUT=scored P=pred_prob. The SCORE statement with DATA=new, OUT=scored, and PREDICTED=pred_prob is wrong because it uses SCORE syntax, which is for separate scoring datasets, and PREDICTED= is not the correct HPLOGISTIC keyword. The OUTPUT statement with PREDICTED=pred_prob is wrong because it uses PREDICTED= instead of P=, which is the correct option. The SCORE statement with OUT=scored and P_EVENT=pred_prob is wrong because P_EVENT= is used in SAS Enterprise Miner node outputs, not directly in PROC HPLOGISTIC syntax.