I am taking a dataset which replicates the below
DATA HAVE
(DROP=I);
DO I = 1 TO 100;
Y = RAND("Integer",0,1);
X1 = I ** RANUNI(I);
X2 = I ** I ** RANUNI(I);
output;
END;
RUN;
And I fit a logistic regression to this dataset like so,
PROC LOGISTIC
DATA=have
PLOTS(ONLY)=NONE
;
MODEL Y (Event = '1') = x1 /
SELECTION=NONE
LINK=LOGIT
;
OUTPUT OUT=fitted_model
PREDICTED = y_hat
PREDPROBS=INDIVIDUAL;
RUN;
QUIT;
what I'm getting as output is the predicted probability but what I would like to get is the prediction of whether y_hat was a '1' or '0' - is this possible to do in SAS?