Hi all
I would like to automatically use a value, derived from an output database, into a new data step.
I explain with an example:
proc logistic data=sample plots=none;
model Y(event=1)=X / outroc=rocX;
ods output ParameterEstimates=param;
run;
/*param DBS has two columns, Variable (in this example named Intercept and X) and Estimate*/
I would like to automatically include the value of Intercept and X, taken from the dbs param, into the following DATA Step
data rocX2(keep=cutoff prob Sensitivity Specificity Youden);
set rocX;
logit=log(_prob_/(1-_prob_));
cutoff=(logit-/*Intercept*/)//*X*/;
prob=_prob_;
Sensitivity=_SENSIT_;
Specificity=1-_1MSPEC_;
Youden=_SENSIT_+ (1-_1MSPEC_)-1;
run;
tsk in advance
... View more