<?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: P Value Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623804#M183704</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308599"&gt;@Pyruvate&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the ALPHA= option in the PROC TABULATE statement to specify a confidence level.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 10:32:57 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-02-11T10:32:57Z</dc:date>
    <item>
      <title>P Value Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623788#M183691</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm outputting some data with proc tabulate, and I'm adding some P-values, which I've formatted with pvalue8.2. This reports&amp;nbsp;&lt;/P&gt;&lt;P&gt;significant results as &amp;lt;.01. Is there a different format or a way to have significant results formatted as &amp;lt;.05?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 08:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623788#M183691</guid>
      <dc:creator>Pyruvate</dc:creator>
      <dc:date>2020-02-11T08:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: P Value Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623804#M183704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308599"&gt;@Pyruvate&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the ALPHA= option in the PROC TABULATE statement to specify a confidence level.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623804#M183704</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-11T10:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: P Value Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623805#M183705</link>
      <description>&lt;P&gt;The PVALUE format is described in the article &lt;A href="https://blogs.sas.com/content/iml/2016/08/15/formats-p-values-odds-ratios-sas.html" target="_self"&gt;"Formats for p-values and odds ratios in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PVALUE&lt;EM&gt;w.d&lt;/EM&gt; format will use the "less than" sign to display values smaller than 1e-&lt;EM&gt;d&lt;/EM&gt;. It does not support arbitrary cutoff points such as multiples of 5. However, you can use PROC FORMAT to define your own format that does what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* use MyPVal. format instead of PVALUE8.2 */
proc format;
value MyPVal
      low - 0.05 = '&amp;lt; 0.05'
      Other = [pvalue8.2];
run;


data FmtExample(drop=d);
format x BEST8. xPval PVALUE6.4 xNewPVal MYPVAL.;
do d = -3 to -2;
   do n = 1 to 9;
      x        = n*10**d;
      xPval    = x;
      xNewPval = x;
      output;
   end;
end;
run;
 
proc print noobs; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623805#M183705</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-02-11T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: P Value Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623807#M183707</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;, but when I use that I get the error message:&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;The pvalues i'm using are not calculated in proc tabulate, they have been calculated in a previous datastep and merged with the data I'm using for the output.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 11:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/P-Value-Format/m-p/623807#M183707</guid>
      <dc:creator>Pyruvate</dc:creator>
      <dc:date>2020-02-11T11:04:04Z</dc:date>
    </item>
  </channel>
</rss>

