Hi,
I have used hours of googling including statalist to find out how I can compare sens, spec, ppv, npv of 2 test on the same population. I could not find a conclusive answer, and I apologize on beforehand for this basic question. But I am close to a deadline and I need to find the solution now.
Here is my dataset:
Binary disease variable (1/0): ischemic_cad
Binary test 1 (1/0): cle_tpc_isch_pp
Binary test 2 (1/0): cleerly_youden
I have calculated the test characteristics with diagt already and have also used roccomp for AUC. But I need to formally compare sens, spec, NPV, and PPV between the two tests.
Here ist the output from diagt:
. diagt ischemic_cad cle_tpc_isch_pp
ischemic_c | cle_tpc_isch_pp
ad | Pos. Neg. | Total
-----------+----------------------+----------
Abnormal | 269 62 | 331
Normal | 178 1,266 | 1,444
-----------+----------------------+----------
Total | 447 1,328 | 1,775
True abnormal diagnosis defined as ischemic_cad = 1
[95% Confidence Interval]
---------------------------------------------------------------------------
Prevalence Pr(A) 18.6% 16.9% 20.5%
---------------------------------------------------------------------------
Sensitivity Pr(+|A) 81.3% 76.6% 85.3%
Specificity Pr(-|N) 87.7% 85.9% 89.3%
ROC area (Sens. + Spec.)/2 0.84 0.82 0.87
---------------------------------------------------------------------------
Likelihood ratio (+) Pr(+|A)/Pr(+|N) 6.59 5.69 7.64
Likelihood ratio (-) Pr(-|A)/Pr(-|N) 0.21 0.17 0.27
Odds ratio LR(+)/LR(-) 30.86 22.48 42.36
Positive predictive value Pr(A|+) 60.2% 55.5% 64.7%
Negative predictive value Pr(N|-) 95.3% 94.1% 96.4%
---------------------------------------------------------------------------
. diagt ischemic_cad cleerly_youden
ischemic_c | cleerly_youden
ad | Pos. Neg. | Total
-----------+----------------------+----------
Abnormal | 285 46 | 331
Normal | 212 1,232 | 1,444
-----------+----------------------+----------
Total | 497 1,278 | 1,775
True abnormal diagnosis defined as ischemic_cad = 1
[95% Confidence Interval]
---------------------------------------------------------------------------
Prevalence Pr(A) 18.6% 16.9% 20.5%
---------------------------------------------------------------------------
Sensitivity Pr(+|A) 86.1% 81.9% 89.6%
Specificity Pr(-|N) 85.3% 83.4% 87.1%
ROC area (Sens. + Spec.)/2 0.86 0.84 0.88
---------------------------------------------------------------------------
Likelihood ratio (+) Pr(+|A)/Pr(+|N) 5.86 5.14 6.69
Likelihood ratio (-) Pr(-|A)/Pr(-|N) 0.16 0.12 0.21
Odds ratio LR(+)/LR(-) 36.00 25.56 50.72
Positive predictive value Pr(A|+) 57.3% 52.9% 61.7%
Negative predictive value Pr(N|-) 96.4% 95.2% 97.4%
---------------------------------------------------------------------------
How can I proceed with the comparisons? I highly appreciate your urgent help!
Sarah
I have used hours of googling including statalist to find out how I can compare sens, spec, ppv, npv of 2 test on the same population. I could not find a conclusive answer, and I apologize on beforehand for this basic question. But I am close to a deadline and I need to find the solution now.
Here is my dataset:
Binary disease variable (1/0): ischemic_cad
Binary test 1 (1/0): cle_tpc_isch_pp
Binary test 2 (1/0): cleerly_youden
I have calculated the test characteristics with diagt already and have also used roccomp for AUC. But I need to formally compare sens, spec, NPV, and PPV between the two tests.
Here ist the output from diagt:
. diagt ischemic_cad cle_tpc_isch_pp
ischemic_c | cle_tpc_isch_pp
ad | Pos. Neg. | Total
-----------+----------------------+----------
Abnormal | 269 62 | 331
Normal | 178 1,266 | 1,444
-----------+----------------------+----------
Total | 447 1,328 | 1,775
True abnormal diagnosis defined as ischemic_cad = 1
[95% Confidence Interval]
---------------------------------------------------------------------------
Prevalence Pr(A) 18.6% 16.9% 20.5%
---------------------------------------------------------------------------
Sensitivity Pr(+|A) 81.3% 76.6% 85.3%
Specificity Pr(-|N) 87.7% 85.9% 89.3%
ROC area (Sens. + Spec.)/2 0.84 0.82 0.87
---------------------------------------------------------------------------
Likelihood ratio (+) Pr(+|A)/Pr(+|N) 6.59 5.69 7.64
Likelihood ratio (-) Pr(-|A)/Pr(-|N) 0.21 0.17 0.27
Odds ratio LR(+)/LR(-) 30.86 22.48 42.36
Positive predictive value Pr(A|+) 60.2% 55.5% 64.7%
Negative predictive value Pr(N|-) 95.3% 94.1% 96.4%
---------------------------------------------------------------------------
. diagt ischemic_cad cleerly_youden
ischemic_c | cleerly_youden
ad | Pos. Neg. | Total
-----------+----------------------+----------
Abnormal | 285 46 | 331
Normal | 212 1,232 | 1,444
-----------+----------------------+----------
Total | 497 1,278 | 1,775
True abnormal diagnosis defined as ischemic_cad = 1
[95% Confidence Interval]
---------------------------------------------------------------------------
Prevalence Pr(A) 18.6% 16.9% 20.5%
---------------------------------------------------------------------------
Sensitivity Pr(+|A) 86.1% 81.9% 89.6%
Specificity Pr(-|N) 85.3% 83.4% 87.1%
ROC area (Sens. + Spec.)/2 0.86 0.84 0.88
---------------------------------------------------------------------------
Likelihood ratio (+) Pr(+|A)/Pr(+|N) 5.86 5.14 6.69
Likelihood ratio (-) Pr(-|A)/Pr(-|N) 0.16 0.12 0.21
Odds ratio LR(+)/LR(-) 36.00 25.56 50.72
Positive predictive value Pr(A|+) 57.3% 52.9% 61.7%
Negative predictive value Pr(N|-) 96.4% 95.2% 97.4%
---------------------------------------------------------------------------
How can I proceed with the comparisons? I highly appreciate your urgent help!
Sarah
Comment