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 and Infographic
Here's the deal — a is correct because in PROC HPLOGISTIC the OUTPUT statement with P= writes the predicted probability to the output dataset: OUTPUT OUT=scored P=pred_prob. B uses SCORE syntax which is for separate scoring datasets but the option name PREDICTED= is not the correct HPLOGISTIC keyword.
Full explanation below image
Full Explanation
A is correct because in PROC HPLOGISTIC the OUTPUT statement with P= writes the predicted probability to the output dataset: OUTPUT OUT=scored P=pred_prob. B uses SCORE syntax which is for separate scoring datasets but the option name PREDICTED= is not the correct HPLOGISTIC keyword. C uses PREDICTED= instead of P= which is the correct option. D is wrong because P_EVENT= is used in SAS Enterprise Miner node outputs, not directly in PROC HPLOGISTIC syntax.