<?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 Sensitvity, specificity, positive predictive value, negative predictive value in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitvity-specificity-positive-predictive-value-negative/m-p/719376#M34805</link>
    <description>&lt;P&gt;Using SAS 9.4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a 3 level response variable and continuous predictor variable (see data example below). What would be the best method to get the sensitivity, specificity, positive predictive value and negative predictive value and to create a ROC/AUC plot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;input flex $ motor;&lt;BR /&gt;datalines; &lt;BR /&gt;Baseline,3&lt;BR /&gt;Baseline,4&lt;BR /&gt;Baseline,5&lt;BR /&gt;Baseline,6&lt;BR /&gt;Negative, 7&lt;BR /&gt;Negative, 8&lt;BR /&gt;Negative, 9&lt;BR /&gt;Negative, 10&lt;BR /&gt;Negative, 5&lt;BR /&gt;Negative, 4&lt;BR /&gt;Negative, 8&lt;BR /&gt;Negative, 9&lt;BR /&gt;Positive,10&lt;BR /&gt;Positive,7&lt;BR /&gt;Positive,3&lt;BR /&gt;Positive,5&lt;BR /&gt;Positive,6&lt;BR /&gt;Positive,8&lt;BR /&gt;Positive,10&lt;BR /&gt;Positive,4&lt;BR /&gt;Positive,3&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the code below; however, I get the the following note in the log&lt;/P&gt;
&lt;P&gt;"NOTE: Since there are more than 2 response levels, the OUTROC= option has no effect."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;BR /&gt;proc logistic data=want outest=parms(keep=intercept motor);&lt;BR /&gt;model flex(event='Positive')= motor / outroc=roc1;&lt;BR /&gt;output out=out p=phat;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 16:54:16 GMT</pubDate>
    <dc:creator>GS2</dc:creator>
    <dc:date>2021-02-15T16:54:16Z</dc:date>
    <item>
      <title>Sensitvity, specificity, positive predictive value, negative predictive value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitvity-specificity-positive-predictive-value-negative/m-p/719376#M34805</link>
      <description>&lt;P&gt;Using SAS 9.4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a 3 level response variable and continuous predictor variable (see data example below). What would be the best method to get the sensitivity, specificity, positive predictive value and negative predictive value and to create a ROC/AUC plot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;input flex $ motor;&lt;BR /&gt;datalines; &lt;BR /&gt;Baseline,3&lt;BR /&gt;Baseline,4&lt;BR /&gt;Baseline,5&lt;BR /&gt;Baseline,6&lt;BR /&gt;Negative, 7&lt;BR /&gt;Negative, 8&lt;BR /&gt;Negative, 9&lt;BR /&gt;Negative, 10&lt;BR /&gt;Negative, 5&lt;BR /&gt;Negative, 4&lt;BR /&gt;Negative, 8&lt;BR /&gt;Negative, 9&lt;BR /&gt;Positive,10&lt;BR /&gt;Positive,7&lt;BR /&gt;Positive,3&lt;BR /&gt;Positive,5&lt;BR /&gt;Positive,6&lt;BR /&gt;Positive,8&lt;BR /&gt;Positive,10&lt;BR /&gt;Positive,4&lt;BR /&gt;Positive,3&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the code below; however, I get the the following note in the log&lt;/P&gt;
&lt;P&gt;"NOTE: Since there are more than 2 response levels, the OUTROC= option has no effect."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;BR /&gt;proc logistic data=want outest=parms(keep=intercept motor);&lt;BR /&gt;model flex(event='Positive')= motor / outroc=roc1;&lt;BR /&gt;output out=out p=phat;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 16:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitvity-specificity-positive-predictive-value-negative/m-p/719376#M34805</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2021-02-15T16:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitvity, specificity, positive predictive value, negative predictive value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitvity-specificity-positive-predictive-value-negative/m-p/719474#M34807</link>
      <description>&lt;P&gt;The statistics you mention, including the ROC curve, is only defined for a binary response. However, a multinomial version of the AUC statistic is available from the &lt;A href="http://support.sas.com/kb/64029" target="_self"&gt;MultAUC macro&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 21:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitvity-specificity-positive-predictive-value-negative/m-p/719474#M34807</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-15T21:07:37Z</dc:date>
    </item>
  </channel>
</rss>

