Hi, I have a data set where one real outcome variable (binary variable 0 or 1) and the model predicted binary variable (0 or 1). But I have 60 number of the model predicted binary variable in the data set, which means I need to create the 2*2 table with the actual outcome and each of the model predicted variable to compute the sensitivity, specificity, and youden's index. Here is the screen shot of my data. In the below data set, allfrc is my real outcome variable and lnn_naa1, lnn_naa2,....., are my model predicted outcome. I used the following command to compute the sensitivity and sensitivity. proc sort data=mydata out=dataout; by descending lnn_naa1 descending allfrc; run; proc freq data = dataout order=data; table lnn_naa1*allfrc / senspec ; test kappa; run; My questions are as below. 1) I created this as macro and run with each model predicted outcome variable (for example, lnn_naa1 * allfrc, and then lnn_naa2*allfrc). But this way takes a lot of time to run. 2) Any recommendation to run the actual outcome * model predicted outcome with calculating the sensitivity, specificity and youden's index? Thank you for any help and comments!
... View more