2014-06-05 92 views
0

我需要爲我的數據集計算以下內容。我可以計算單個PPV(95%CI)和NPV(95%CI),但得到的TAD困惑如何計算這個靈敏度和特異性

PPV + NPV-1(95%CI)

如何做到這一點如何計算?

回答

0

This page on SAS support給出的代碼如下:

title 'Sensitivity'; 
     proc freq data=FatComp; 
     where Response=1; 
     weight Count; 
     tables Test/binomial(level="1"); 
     exact binomial; 
     run; 

     title 'Specificity'; 
     proc freq data=FatComp; 
     where Response=0; 
     weight Count; 
     tables Test/binomial(level="0"); 
     exact binomial; 
     run; 

     title 'Positive predictive value'; 
     proc freq data=FatComp; 
     where Test=1; 
     weight Count; 
     tables Response/binomial(level="1"); 
     exact binomial; 
     run; 

     title 'Negative predictive value'; 
     proc freq data=FatComp; 
     where Test=0; 
     weight Count; 
     tables Response/binomial(level="0"); 
     exact binomial; 
     run;