<?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: Create a table with odds ratios and confidence intervals from several logistic regressions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-a-table-with-odds-ratios-and-confidence-intervals-from/m-p/921415#M362870</link>
    <description>&lt;P&gt;I think you may want to use ODS OUTPUT to place the odds ratio information into a data set. Then combine the data sets (proc append or data step)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if the set OddResExp1 created below has what you want.&lt;/P&gt;
&lt;PRE&gt;ods output oddsratios= OddResExp1;
proc logistic data=ev.pregev_Dataall;
model neuro(event='1') = ResExp1 birthyear female mage hispan ses;
run;&lt;/PRE&gt;
&lt;P&gt;If so you should be able to create an output set for each by using &amp;amp;i in the OdsResExp instead of 1.&lt;/P&gt;
&lt;P&gt;Then combine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that all the different output object names created by your code are available setting ODS TRACE ON; before running a procedure. You can then use ODS OUTPUT to create sets for each name using pairs of object/dataset names. Turn the trace off using: ODS TRACE OFF; after the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods Output &amp;lt;object name&amp;gt; = &amp;lt;my data set name&amp;gt; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 21:43:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-03-21T21:43:01Z</dc:date>
    <item>
      <title>Create a table with odds ratios and confidence intervals from several logistic regressions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-table-with-odds-ratios-and-confidence-intervals-from/m-p/921414#M362869</link>
      <description>&lt;P&gt;Hello, I wrote a macro to perform several logistic regressions for the same outcome variable but several different exposure variables. Is there a way to create a table that contains all the odds ratios and 95% confidence intervals for all ResExp variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro dd_singlepest;&lt;BR /&gt;%do i = 1 %to 47;&lt;BR /&gt;proc logistic data=ev.pregev_Dataall;&lt;BR /&gt;model neuro(event='1') = ResExp&amp;amp;i birthyear female mage hispan ses;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 21:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-table-with-odds-ratios-and-confidence-intervals-from/m-p/921414#M362869</guid>
      <dc:creator>olliegeorge</dc:creator>
      <dc:date>2024-03-21T21:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with odds ratios and confidence intervals from several logistic regressions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-table-with-odds-ratios-and-confidence-intervals-from/m-p/921415#M362870</link>
      <description>&lt;P&gt;I think you may want to use ODS OUTPUT to place the odds ratio information into a data set. Then combine the data sets (proc append or data step)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if the set OddResExp1 created below has what you want.&lt;/P&gt;
&lt;PRE&gt;ods output oddsratios= OddResExp1;
proc logistic data=ev.pregev_Dataall;
model neuro(event='1') = ResExp1 birthyear female mage hispan ses;
run;&lt;/PRE&gt;
&lt;P&gt;If so you should be able to create an output set for each by using &amp;amp;i in the OdsResExp instead of 1.&lt;/P&gt;
&lt;P&gt;Then combine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that all the different output object names created by your code are available setting ODS TRACE ON; before running a procedure. You can then use ODS OUTPUT to create sets for each name using pairs of object/dataset names. Turn the trace off using: ODS TRACE OFF; after the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods Output &amp;lt;object name&amp;gt; = &amp;lt;my data set name&amp;gt; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 21:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-table-with-odds-ratios-and-confidence-intervals-from/m-p/921415#M362870</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-21T21:43:01Z</dc:date>
    </item>
  </channel>
</rss>

