<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Concordance vs. Sensitivity in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146804#M7718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am confused between these two terms - Sensitivity and Concordance. What i understand about these two terms -&lt;/P&gt;&lt;P&gt;Concordance - the number of pairs where actual 1s have higher predicted probability of becoming 1s than 0s divided by total number of pairs&lt;/P&gt;&lt;P&gt;Sensitivity (True Positive) - percentage of 1s correctly predicted as 1. By their definitions, both seems to be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read somewhere Concordance = (TRUE POSITIVE + TRUE NEGATIVE) / SAMPLE SIZE. I have tried to calculate concordance using this formula. But it seems to be incorrect.&lt;/P&gt;&lt;P&gt;First, i have run logistic regression using PROC LOGISTIC with CTABLE PPROB=0.5 options. Then, i have calculated true positive pairs from (Sensitivity percentage* number of 1s) and true negative pairs from (Specificity percentage * number of 0s). I added them up and divided by total responses. It is not matching up with concordance score.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Aug 2014 16:31:23 GMT</pubDate>
    <dc:creator>Ujjawal</dc:creator>
    <dc:date>2014-08-03T16:31:23Z</dc:date>
    <item>
      <title>Concordance vs. Sensitivity</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146804#M7718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am confused between these two terms - Sensitivity and Concordance. What i understand about these two terms -&lt;/P&gt;&lt;P&gt;Concordance - the number of pairs where actual 1s have higher predicted probability of becoming 1s than 0s divided by total number of pairs&lt;/P&gt;&lt;P&gt;Sensitivity (True Positive) - percentage of 1s correctly predicted as 1. By their definitions, both seems to be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read somewhere Concordance = (TRUE POSITIVE + TRUE NEGATIVE) / SAMPLE SIZE. I have tried to calculate concordance using this formula. But it seems to be incorrect.&lt;/P&gt;&lt;P&gt;First, i have run logistic regression using PROC LOGISTIC with CTABLE PPROB=0.5 options. Then, i have calculated true positive pairs from (Sensitivity percentage* number of 1s) and true negative pairs from (Specificity percentage * number of 0s). I added them up and divided by total responses. It is not matching up with concordance score.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 16:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146804#M7718</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2014-08-03T16:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Concordance vs. Sensitivity</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146805#M7719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have two different definitions of concordance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I heard "concordance" in a diagnostic setting or predictive setting, I would first think of your second definition (TRUE POSTIVE + TRUE NEGATIVE) / SAMPLE SIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensitivity is (True Positive)/(True Positive + False Negative).&lt;/P&gt;&lt;P&gt;There are lost of good pages on sensitivity/specificity/PPV/NPV etc.&amp;nbsp; Wikipedia has a nice 2x2 contingency table which describes different statistics.&lt;A href="http://en.wikipedia.org/wiki/Sensitivity_and_specificity"&gt;http://en.wikipedia.org/wiki/Sensitivity_and_specificity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it looks like proc logistic is giving you something else for CONCORDANCE.&amp;nbsp; It is not %agreement using sample size as the denominator.&amp;nbsp; This site has a nice explanation.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/output/sas_logit_output.htm"&gt;http://www.ats.ucla.edu/stat/sas/output/sas_logit_output.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note the denominator used by this calculation is not the sample size, it's the number of pairs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is sample data.&lt;/P&gt;&lt;P&gt;Concordance of the contingency table is (TP+TN)/SIZE = (40+50)/100= 90%.&lt;/P&gt;&lt;P&gt;The concordance calculated by LOGISTIC is 80.8%.&amp;nbsp; The denominator for that calculation is 2475, i.e. with 45 true negatives and 55 true positive, you can have 2475 pairs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data a;
&amp;nbsp;&amp;nbsp; input x y weight;
&amp;nbsp;&amp;nbsp; cards;
0 0 40
0 1 5
1 1 50
1 0 5
;
run;

proc logistic data=a descending;
&amp;nbsp; class x;
&amp;nbsp; model y=x;
&amp;nbsp; freq weight;
run;

proc freq data=a ;
&amp;nbsp; tables x*y /measures;
&amp;nbsp; weight weight;
run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 18:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146805#M7719</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-08-03T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Concordance vs. Sensitivity</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146806#M7720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using PPROB=0.5 in PROC LOGISTIC options? Why not 0.4,0.3 or some other value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 02:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Concordance-vs-Sensitivity/m-p/146806#M7720</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-04T02:45:02Z</dc:date>
    </item>
  </channel>
</rss>

