How do I alter the code below to make sure I get the c statistic?
ods graphics on;
proc logistic data=&data SIMPLE plots(only)=(roc(id=prob) effect)
PLOTS(ONLY)=(ODDSRATIO(range=clip));
model variable_2cat = ARG1_Hs00163660_m1 /
LACKFIT
RSQUARE
LINK=LOGIT
CLPARM=WALD
CLODDS=WALD
ROCCI;
run;
quit;
Thanks!
Hello,
Why do you think you won't get the c-statistic with above code?
The c-statistic is in the last printed table (default output), entitled "Association of Predicted Probabilities and Observed Responses" (right-bottom cell).
The ODS table name is 'Association'.
Koen
data test ( keep = anemia allergy weight visit ); set sashelp.bweight; if _N_ <= 100; anemia = black; allergy = married; run; ods select none; *Outcome = ANEMIA; proc logistic data = test descending ; model anemia = weight visit/outroc=roc1; ods output Association=Association1; run; ods select all;
Check dataset Association1
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.