<?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: Sensitivty, specificity, PPV, NPV in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721027#M34915</link>
    <description>What version of SAS do you have?&lt;BR /&gt;You can check with proc product_status;run;&lt;BR /&gt;The answer will be in the log. &lt;BR /&gt;&lt;BR /&gt;Otherwise, see this post:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/170.html" target="_blank"&gt;https://support.sas.com/kb/24/170.html&lt;/A&gt;</description>
    <pubDate>Mon, 22 Feb 2021 19:57:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-02-22T19:57:48Z</dc:date>
    <item>
      <title>Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721024#M34914</link>
      <description>&lt;P&gt;Using SAS 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to get the sensitivity, specificity, PPV, NPV as well as the 95% CI for each. I tried running a proc freq with the senspec option but I must not be running the correct version of SAS for this option to be available. My question is if their is another efficient way to&amp;nbsp;get the sensitivity, specificity, PPV, NPV as well as the 95% CI using SAS? Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;input A $ B $;&lt;BR /&gt;datalines; &lt;BR /&gt;Negative, A&lt;BR /&gt;Negative, A&lt;BR /&gt;Negative, A&lt;BR /&gt;Negative, A&lt;BR /&gt;Negative, A&lt;BR /&gt;Negative, A&lt;BR /&gt;Negative, B&lt;BR /&gt;Negative, B&lt;BR /&gt;Positive,B&lt;BR /&gt;Positive,B&lt;BR /&gt;Positive,B&lt;BR /&gt;Positive,B&lt;BR /&gt;Positive,C&lt;BR /&gt;Positive,C&lt;BR /&gt;Positive,C&lt;BR /&gt;Positive,C&lt;BR /&gt;Positive,C&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;proc freq data = check;&lt;BR /&gt;table A*B /senspec;&lt;BR /&gt;where B not in: ('C');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, AGREE, ALL, ALPHA, BDT, BIN,&lt;BR /&gt;BINOMIAL, CELLCHI2, CHISQ, CL, CMH, CMH1, CMH2, COMMONRISKDIFF, COMONMRDIFF,&lt;BR /&gt;CONTENTS, CONVERGE, CROSSLIST, CUMCOL, DEVIATION, EXACT, EXPECTED, FISHER, FORMAT,&lt;BR /&gt;GAILSIMON, GS, JT, KAPPA, LINE, LIST, MAXITER, MAXLEVELS, MEASURES, MISSING,&lt;BR /&gt;MISSPRINT, NOCOL, NOCUM, NOFREQ, NOPERCENT, NOPRINT, NOROW, NOSPARSE, NOWARN,&lt;BR /&gt;ODDSRATIO, OR, OUT, OUTCUM, OUTEXPECT, OUTPCT, PEARSONRES, PEARSONRESID, PLCORR,&lt;BR /&gt;PLOTS, PRINTKWTS, PRINTWTS, RELRISK, RISKDIFF, SCORE, SCORES, SCOROUT, SPARSE,&lt;BR /&gt;STDRES, STDRESID, TABLE, TESTF, TESTP, TOTPCT, TREND, WARN.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 19:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721024#M34914</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2021-02-22T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721027#M34915</link>
      <description>What version of SAS do you have?&lt;BR /&gt;You can check with proc product_status;run;&lt;BR /&gt;The answer will be in the log. &lt;BR /&gt;&lt;BR /&gt;Otherwise, see this post:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/170.html" target="_blank"&gt;https://support.sas.com/kb/24/170.html&lt;/A&gt;</description>
      <pubDate>Mon, 22 Feb 2021 19:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721027#M34915</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-22T19:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721032#M34916</link>
      <description>&lt;P&gt;Version 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That link is the post I was looking at and hoping to get a similar output&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 20:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721032#M34916</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2021-02-22T20:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721038#M34918</link>
      <description>&lt;P&gt;9.4 M what?&lt;BR /&gt;&lt;BR /&gt;Otherwise, I think you're essentially stuck doing it manually. If you search on lexjansen.com you'll find some macros and example code, but ultimately it's a manual calculation. The &lt;STRONG&gt;code at the bottom of the post (multiple proc freqs)&lt;/STRONG&gt;&amp;nbsp;shows how to calculate each value manually, without the option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt; title 'Sensitivity/TPR/Recall';&lt;/STRONG&gt;&lt;/FONT&gt;
      proc freq data=FatComp;
         where Response=1;
         weight Count;
         tables Test / binomial(level="1");
         exact binomial;
         run;
   
   &lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;   title 'Specificity/TNR';&lt;/STRONG&gt;&lt;/FONT&gt;
      proc freq data=FatComp;
         where Response=0;
         weight Count;
         tables Test / binomial(level="0");
         exact binomial;
         run;
   
&lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;      title 'Positive predictive value/Precision';&lt;/STRONG&gt;&lt;/FONT&gt;
      proc freq data=FatComp;
         where Test=1;
         weight Count;
         tables Response / binomial(level="1");
         exact binomial;
         run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2021 20:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721038#M34918</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-22T20:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721040#M34919</link>
      <description>M5</description>
      <pubDate>Mon, 22 Feb 2021 20:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721040#M34919</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2021-02-22T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721042#M34920</link>
      <description>There have been many 9.4 releases, so "9.4" is not a sufficient designation. If you run this statement, you will get the correct release designation:  %put Release: &amp;amp;sysvlong;&lt;BR /&gt;You can ignore the part starting with "P". As mentioned in Note 24170 mentioned below, you need SAS 9.4 TS1M6 to have access to the SENSPEC option. See the people at your site that maintain your SAS license to see if you can upgrade to a more current release.</description>
      <pubDate>Mon, 22 Feb 2021 20:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721042#M34920</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-22T20:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivty, specificity, PPV, NPV</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721043#M34921</link>
      <description>I missed that part. Thank you for the help</description>
      <pubDate>Mon, 22 Feb 2021 20:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sensitivty-specificity-PPV-NPV/m-p/721043#M34921</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2021-02-22T20:20:40Z</dc:date>
    </item>
  </channel>
</rss>

