I have a question about how sensitivity and specificity are calculated in -roctab- as I have had discrepancies between the stata values and hand calculated values.
Take the example from the help file for instance, at the cut off point >=2, the 2x2 table should look like this
The -roctab- sensitivity and specificity is: 94.12% (sensitivity) and 56.90% (specificity)
Hand calculated sensitivity and specificity is: 65.75% (sensitivity) and 91.67% (specificity)
If someone could point me in the right direction, that would be great!
Thanks!
Take the example from the help file for instance, at the cut off point >=2, the 2x2 table should look like this
Rating | ||
disease | <=1 | >=2 |
0 | 33 (TN) | 25 |
1 | 3 | 48 (TP) |
Hand calculated sensitivity and specificity is: 65.75% (sensitivity) and 91.67% (specificity)
If someone could point me in the right direction, that would be great!
Thanks!
Comment