<?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 ods output binomial test in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923900#M363697</link>
    <description>proc freq data=mrg2;&lt;BR /&gt;&lt;BR /&gt;where trt01pn in (&amp;amp;trt);&lt;BR /&gt;&lt;BR /&gt;tables &amp;amp;var / binomial(p=&amp;amp;p level="Y") ; &lt;BR /&gt;output out=&amp;amp;out binomial ;&lt;BR /&gt;run;</description>
    <pubDate>Thu, 11 Apr 2024 02:18:42 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-04-11T02:18:42Z</dc:date>
    <item>
      <title>how to ods output binomial test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923838#M363680</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How do i output the binomial test into a dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro yesci (var= ,trt=, p= , out=);&lt;/P&gt;&lt;P&gt;proc freq data=mrg2;&lt;/P&gt;&lt;P&gt;where trt01pn in (&amp;amp;trt);&lt;/P&gt;&lt;P&gt;tables &amp;amp;var / binomial(p=&amp;amp;p level="Y") out=&amp;amp;out;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend yesci;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%yesci (var=cat6, trt=2 , p=0.242, out=cat6_trt2 );&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 16:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923838#M363680</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2024-04-10T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to ods output binomial test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923845#M363683</link>
      <description>&lt;P&gt;The generic skill is to use the ODS Trace option:&lt;/P&gt;
&lt;P&gt;&amp;lt;dummy code&amp;gt;&lt;/P&gt;
&lt;PRE&gt;ods trace on;

proc whatever &amp;lt;options&amp;gt;;
run;

ods trace off;&lt;/PRE&gt;
&lt;P&gt;Your log will show the names of the output objects.&lt;/P&gt;
&lt;P&gt;Example you can run:&lt;/P&gt;
&lt;PRE&gt;ods trace on;

proc freq data=sashelp.class;
tables sex / binomial;
run;

ods trace off;&lt;/PRE&gt;
&lt;P&gt;The log shows:&lt;/P&gt;
&lt;PRE&gt;Output Added:
-------------
Name:       OneWayFreqs
Label:      One-Way Frequencies
Template:   Base.Freq.OneWayFreqs
Path:       Freq.Table1.OneWayFreqs
-------------

Output Added:
-------------
Name:       Binomial
Label:      Binomial Proportion
Template:   Base.Freq.BinomialStatFactoid
Path:       Freq.Table1.Binomial
-------------

Output Added:
-------------
Name:       BinomialTest
Label:      Binomial Proportion Test
Template:   Base.Freq.BinomialStatFactoid
Path:       Freq.Table1.BinomialTest
-------------
&lt;/PRE&gt;
&lt;P&gt;You would use the bit(s) with the Name: in and ODS OUTPUT statement with &amp;lt;name&amp;gt;=&amp;lt;your data set name&amp;gt; pairs for the desired objects:&lt;/P&gt;
&lt;PRE&gt;ods output BinomialTest= mybinomialtestdataset;
proc freq data=sashelp.class;
tables sex / binomial;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR read the online help for the procedure. The Details section should have an ODS TABLE NAMES section that will have the name of the table (i.e. BinomialTest) and the option(s) required to create it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 17:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923845#M363683</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-10T17:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to ods output binomial test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923900#M363697</link>
      <description>proc freq data=mrg2;&lt;BR /&gt;&lt;BR /&gt;where trt01pn in (&amp;amp;trt);&lt;BR /&gt;&lt;BR /&gt;tables &amp;amp;var / binomial(p=&amp;amp;p level="Y") ; &lt;BR /&gt;output out=&amp;amp;out binomial ;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 11 Apr 2024 02:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ods-output-binomial-test/m-p/923900#M363697</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-11T02:18:42Z</dc:date>
    </item>
  </channel>
</rss>

