<?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 Customising p-value formats in output of procs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259312#M57437</link>
    <description>&lt;P&gt;Last week I found a post here on how to change the format of the p-values output by proc corr (via its template). I wonder whether it is possible to change the formats of ALL the p-values output by ALL SAS procedures, so that they are all the same, something like best9. for example?&lt;BR /&gt;&lt;BR /&gt;(SASUniversityEdition, version 9.4)&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2016 07:40:54 GMT</pubDate>
    <dc:creator>normanbg</dc:creator>
    <dc:date>2016-03-28T07:40:54Z</dc:date>
    <item>
      <title>Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259312#M57437</link>
      <description>&lt;P&gt;Last week I found a post here on how to change the format of the p-values output by proc corr (via its template). I wonder whether it is possible to change the formats of ALL the p-values output by ALL SAS procedures, so that they are all the same, something like best9. for example?&lt;BR /&gt;&lt;BR /&gt;(SASUniversityEdition, version 9.4)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 07:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259312#M57437</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2016-03-28T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259314#M57438</link>
      <description>&lt;PRE&gt;
There is already a format PVALUE. you can use :

data _null_;
p=.00003;
put p= pvalue.;
p=.3;
put p= pvalue.;
run;




If you want output like SPSS : * ** *** 
Make a format for it :

proc format;
value fmt
 low-0.05='***'
 0.05&amp;lt;-0.1='**'
 0.1&amp;lt;-high='*';
run;
data _null_;
p=.00003;
put p= fmt.;
p=.3;
put p= fmt.;
run;

&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2016 08:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259314#M57438</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-28T08:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259336#M57443</link>
      <description>&lt;P&gt;Dear Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your reply; I was not aware of the pvalue. format. But how do I modify it from its current definition (any p-value &amp;lt; 1E-4 becomes &amp;lt;.0001) to something else, best9. for instance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can I apply your second example ('like SPSS') to output produced by a procedure like proc corr?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Norman&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 13:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259336#M57443</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2016-03-28T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259355#M57449</link>
      <description>&lt;P&gt;PVALUE is a SAS supplied format and you cannot modify it or create your own format with the same name in an attempt to override it. (I tried to confirm my suspicion).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any procedure that you can create an output data set can have the the results printed or displayed using another report procedure like Proc Report or Proc Tabulate and associate the desired format with the value displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 15:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259355#M57449</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-28T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259513#M57472</link>
      <description>&lt;PRE&gt;
Just apply the PVALUE. or the format I created above to proc corr .

proc corr.........
.........
format pvalue pvalue.;
OR
format pvalue best9.;


&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2016 00:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259513#M57472</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-29T00:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259606#M57485</link>
      <description>&lt;P&gt;Dear Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your reply and your continuing willingness to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried yor suggestion and received the following:&amp;nbsp; "WARNING: Variable PVALUE not found in data set WORK.NORMAN.". The inability to modify the built-in format PVALUE has also been reported by ballardw (Super User) in his post above.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259606#M57485</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2016-03-29T07:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259608#M57486</link>
      <description>&lt;P&gt;Dear Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I followed your suggestion with proc corr and proc report. Proc report does not reproduce the p-values of proc corr in its listing, only MEANS, STD, N, and CORR, no p-values at all; adding a format statement affects the output of the original variables only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have I missed something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Norman&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259608#M57486</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2016-03-29T08:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259615#M57489</link>
      <description>&lt;PRE&gt;
Opps. You need the variable name firstly. For the following example . the variable name are pweight,pheight :



ods select none;
ods output PearsonCorr=corr;
proc corr data=sashelp.class;
var weight height;
run;
ods select all;
proc print data=corr noobs;
format pweight pheight pvalue.;
run;



&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259615#M57489</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-29T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Customising p-value formats in output of procs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259624#M57491</link>
      <description>&lt;P&gt;Dear Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BINGO! That did it. Thank you. Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Norman&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 11:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Customising-p-value-formats-in-output-of-procs/m-p/259624#M57491</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2016-03-29T11:40:16Z</dc:date>
    </item>
  </channel>
</rss>

