Hi,
I am not advanced SAS user and I will need your help. I am working on a dataset with 6 predictors (3 contiuous, 3 categorical) with binary outcome. I am trying to do the followings:
1. Split the data into 50% training and 50% validating datasets and then compare their ROC curves, SAS code:
proc glmselect data=roc; partition fraction(validate=0.5); model ca=wt cons age race smoking BP / selection=forward; output out=outDataForward; run;
proc glmselect data=outDataForward; model comp=wgtdx consult agedx race smk hyp/selection=backward; run;
2. Conduct 3-fold split of the sample and then compare the ROC and AUC curves for the 3 datasets (training, valdiating, testing), SAS code:
proc glmselect data=roc; partition fraction(test=0.25 validate=0.25); model comp=wgtdx consult agedx race smk hyp/selection=forward; output out=outDataForward; run;
I am sure my codes are not correct/complete and I will appreciate someone explains to me (step by step with details) how to split my dataset into two equal parts and 3-parts and then compare these models and obtain ROC and AUV values.
Thanks in advance.
SU
... View more