<?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 Re: Find optimal threshold using ROC Curve in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854961#M42282</link>
    <description>&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Calculating-Optimal-Cutoff-Point-for-Repeated-Measurement-data/m-p/843880#M41817" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Calculating-Optimal-Cutoff-Point-for-Repeated-Measurement-data/m-p/843880#M41817&lt;/A&gt;</description>
    <pubDate>Sat, 21 Jan 2023 11:39:52 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-01-21T11:39:52Z</dc:date>
    <item>
      <title>Find optimal threshold using ROC Curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854931#M42278</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE;
 input ID Test1 Test1Res Test2 Test2Res @@;
 cards;
A 1 0.5 1 1.23
A 1 0.8 1 1.97
A 0 . 1 1.54
B 1 0.6 1 1.20
B 1 0.7 0 .
B 1 0.9 1 1.21
C 0 . 0 .
C 0 . 0 .
C 1 0.5 0 .
D 0 . 0 .
D 1 0.8 0 .
D 0 . 1 1.29
;
run;
/*ID = Subject Identifier*/
/*Test1 = Primary test result positive (1) or negative (0)*/
/*Test1Res = Primary test result*/
/*Test2 = Secondary test result positive (1) or negative (0)*/
/*Test2Res = Secondary test result*/

proc logistic data= HAVE descending plots(only)= roc;
 model Test1=Test2Res / outroc= ROC;
run;
/*ROC dataset contains Probability Level, No. of TP, FP, TN, and FN, and the Sensitivity and 1-Specificity*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To find the optimal point, I would want to find when sensitivity is the greatest and 1-specificity is the lowest, i.e. the highest Probability Level or sum(Sens, Spec), correct? From here, how would I find which threshold level the sensitivity and specificity are associated with?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 22:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854931#M42278</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2023-01-20T22:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Find optimal threshold using ROC Curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854934#M42279</link>
      <description>What you want is called the Youden index. When you are looking for a particular statistic in SAS, check the list of Frequently Asked-for Statistics (FASTats)&amp;nbsp;in the Important Links section of the Statistical Procedures Community page. For you case, see the ROC curve and Youden index items in FASTats.</description>
      <pubDate>Fri, 20 Jan 2023 22:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854934#M42279</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-01-20T22:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find optimal threshold using ROC Curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854961#M42282</link>
      <description>&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Calculating-Optimal-Cutoff-Point-for-Repeated-Measurement-data/m-p/843880#M41817" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Calculating-Optimal-Cutoff-Point-for-Repeated-Measurement-data/m-p/843880#M41817&lt;/A&gt;</description>
      <pubDate>Sat, 21 Jan 2023 11:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Find-optimal-threshold-using-ROC-Curve/m-p/854961#M42282</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-21T11:39:52Z</dc:date>
    </item>
  </channel>
</rss>

