<?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: how to output proc freq pvalue into a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842164#M333003</link>
    <description>&lt;P&gt;I think you are looking for&lt;/P&gt;
&lt;PRE&gt;ods output binomialtest=want;&lt;/PRE&gt;
&lt;P&gt;for the p values. There will be one row, matching the displayed table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can look up the table names in the documentation for Proc Freq under the Details tab with the ODS Table Names and see which tables are created by which Tables options. Or use ODS TRACE on; and ODS trace off; around the procedure you use to see which tables are generated by your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you one one way freqs then request table ONEWAYFREQS, not Crosstabfreqs.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 17:48:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-11-02T17:48:39Z</dc:date>
    <item>
      <title>how to output proc freq pvalue into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842137#M332992</link>
      <description>&lt;P&gt;hello, I'm trying to output a sas dataset for my one-sided p-values in proc freq step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods output CrossTabFreqs=want;

proc freq data=a; 
where treatn="virus";
table &lt;SPAN&gt;TFRELPRC_STD&lt;/SPAN&gt;/binomial(p=0.234 level="Y") ; 
run;
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1667406170090.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76875i7945A368D32101F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1667406170090.png" alt="HitmonTran_0-1667406170090.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 16:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842137#M332992</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-11-02T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to output proc freq pvalue into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842164#M333003</link>
      <description>&lt;P&gt;I think you are looking for&lt;/P&gt;
&lt;PRE&gt;ods output binomialtest=want;&lt;/PRE&gt;
&lt;P&gt;for the p values. There will be one row, matching the displayed table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can look up the table names in the documentation for Proc Freq under the Details tab with the ODS Table Names and see which tables are created by which Tables options. Or use ODS TRACE on; and ODS trace off; around the procedure you use to see which tables are generated by your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you one one way freqs then request table ONEWAYFREQS, not Crosstabfreqs.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842164#M333003</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-02T17:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to output proc freq pvalue into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842167#M333005</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=a; 
ods output binomialtest=binomialtest;
where treatn="virus";
table TFRELPRC_STD/binomial(p=0.234 level="Y") ; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842167#M333005</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-02T17:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to output proc freq pvalue into a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842285#M333058</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=a; 
where treatn="virus";
table TFRELPRC_STD/binomial(p=0.234 level="Y") ; 
output out=want binomial;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2022 11:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-proc-freq-pvalue-into-a-dataset/m-p/842285#M333058</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-11-03T11:47:34Z</dc:date>
    </item>
  </channel>
</rss>

