For proc logistic, can you look at specific levels of sensitivity?
For example:
proc logistic data = dataset;
by group;
model y = x / ctable;
roc "x" x;
run;
Ctable gives the classification table but is there a way I can see everything that gives me except with specific levels of sensitivity (70, 80, and 90%)?
model y = x / ctable pprob=(0.7 0.8 0.9);
It was my understanding that pprob specifies cutpoints. Basically what I am trying to do is look at Sensitivity levels of 70%, 80%, and 90% as the cutpoints.
The exact wording of what I am working on requires me to "provide specificity for the following three levels of sensitivity: 70%, 80%, 90%"
Is there a way to do this?
It isn't possible to specify the sensitivity values to report in CTABLE results. The best you can do is specify a fine list of PPROB= values and see which cutpoints correspond to the desired sensitivity values. If the range of cutpoints that you see without PPROB= is, say, .3 to .7 then you could specify something like PPROB=(.3 to .7 by .05). Once you find the cutpoints that bracket the desired sensitivity values, then you can rerun with even finer PPROB= list to get what you want.
Ah, thank you! That's what I ended up doing but was hoping there was a better way because my data is stratified into several different groups and I need the stats for each so it is a lot to look through. Is there a different way to do it that I am not considering?
Thank you so much again!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.