<?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: aggregate many logistic regression results/outputs include Odds Ratios 95%CI? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413522#M21688</link>
    <description>&lt;P&gt;Search on lexjansen.com for sample code. Though to be honest, I've found manipulating other peoples macros more difficult that writing my own from scratch. You may find a perfect example though...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another option is to reformat your data somehow so you can use BY group processing, this isn't always possible.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you need&amp;nbsp;further help, I suggest you post&amp;nbsp;&lt;/SPAN&gt;sample data as a data step and what you want as output. Anything you have so far is helpful as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118286"&gt;@Xiaoyi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear SAS Masters,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data (just a sample) like the following (real data have more variables). I want to calculate Odds Ratios (OR) and 95% CI using logistic regression models adjusting several other factors . Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does any master here have good solution that can put the outputs of many logistic models together in one or fewer tables? I can write Macro to deal with repeated logistic regression, but I am scratching my head for having to put these results all together. Only OR and 95%CI, whether they are together or separate, with or without other outputs, doesn't matter, as long as they can be aggregated in one table, that could save me tons of work. Thanks in advance if you could offer some programming tips.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Joy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Adjusted variables (co-variance): Adjust1 Adjust2&lt;/P&gt;
&lt;P&gt;Var1-Var4 compared between Group using logistic regression&lt;/P&gt;
&lt;P&gt;Group=1 as reference group, Group 2, Group 3 are all compared to Group 1, so the odds ratios are for 1 vs 2, 1 vs 3, etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; Adjust1&amp;nbsp; Adjust2&amp;nbsp; Var1&amp;nbsp; Var2&amp;nbsp; Var3&amp;nbsp; Var4&amp;nbsp; Group&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;02&amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;03&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;
&lt;P&gt;04&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 23:26:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-14T23:26:07Z</dc:date>
    <item>
      <title>multiple logistic models output odds ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413512#M21685</link>
      <description>&lt;P&gt;Dear SAS Masters,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data (just a sample) like the following (real data have more variables). I want to calculate Odds Ratios (OR) and 95% CI using logistic regression models adjusting several other factors . Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any master here have good solution that can put the outputs of many logistic models together in one or fewer tables? I can write Macro to deal with repeated logistic regression, but I am scratching my head for having to put these results all together. Only OR and 95%CI, whether they are together or separate, with or without other outputs, doesn't matter, as long as they can be aggregated in one table, that could save me tons of work. Thanks in advance if you could offer some programming tips.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Adjusted variables (co-variance): Adjust1 Adjust2&lt;/P&gt;&lt;P&gt;Var1-Var4 compared between Group using logistic regression&lt;/P&gt;&lt;P&gt;Group=1 as reference group, Group 2, Group 3 are all compared to Group 1, so the odds ratios are for 1 vs 2, 1 vs 3, etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; Adjust1&amp;nbsp; Adjust2&amp;nbsp; Var1&amp;nbsp; Var2&amp;nbsp; Var3&amp;nbsp; Var4&amp;nbsp; Group&lt;/P&gt;&lt;P&gt;01&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;02&amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;03&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;04&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 22:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413512#M21685</guid>
      <dc:creator>Xiaoyi</dc:creator>
      <dc:date>2017-11-14T22:49:11Z</dc:date>
    </item>
    <item>
      <title>aggregate many logistic regression model outputs (odds ratio and 95%CI)?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413514#M21706</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear SAS Masters,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data (just a sample) like the following (real data have more variables). I want to calculate Odds Ratios (OR) and 95% CI using logistic regression models adjusting several other factors . Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any master here have good solution that can put the outputs of many logistic models together in one or fewer tables? I can write Macro to deal with repeated logistic regression, but I am scratching my head for having to put these results all together. Only OR and 95%CI, whether they are together or separate, with or without other outputs, doesn't matter, as long as they can be aggregated in one table, that could save me tons of work. Thanks in advance if you could offer some programming tips.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sorry if you see this as repeated question, I am just trying to find a solution for an urgent report.&amp;nbsp;)&lt;/P&gt;&lt;P&gt;Joy&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Adjusted variables (co-variance): Adjust1 Adjust2&lt;/P&gt;&lt;P&gt;Var1-Var4 compared between Group using logistic regression&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Group=1 as reference group, Group 2, Group 3 are all compared to Group 1, so the odds ratios are for 1 vs 2, 1 vs 3, etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; Adjust1&amp;nbsp; Adjust2&amp;nbsp; Var1&amp;nbsp; Var2&amp;nbsp; Var3&amp;nbsp; Var4&amp;nbsp; Group&lt;/P&gt;&lt;P&gt;01&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;02&amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;03&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;04&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 22:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413514#M21706</guid>
      <dc:creator>Xiaoyi</dc:creator>
      <dc:date>2017-11-14T22:50:16Z</dc:date>
    </item>
    <item>
      <title>aggregate many logistic regression results/outputs include Odds Ratios 95%CI?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413518#M21687</link>
      <description>&lt;P&gt;Dear SAS Masters,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data (just a sample) like the following (real data have more variables). I want to calculate Odds Ratios (OR) and 95% CI using logistic regression models adjusting several other factors . Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any master here have good solution that can put the outputs of many logistic models together in one or fewer tables? I can write Macro to deal with repeated logistic regression, but I am scratching my head for having to put these results all together. Only OR and 95%CI, whether they are together or separate, with or without other outputs, doesn't matter, as long as they can be aggregated in one table, that could save me tons of work. Thanks in advance if you could offer some programming tips.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Adjusted variables (co-variance): Adjust1 Adjust2&lt;/P&gt;&lt;P&gt;Var1-Var4 compared between Group using logistic regression&lt;/P&gt;&lt;P&gt;Group=1 as reference group, Group 2, Group 3 are all compared to Group 1, so the odds ratios are for 1 vs 2, 1 vs 3, etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; Adjust1&amp;nbsp; Adjust2&amp;nbsp; Var1&amp;nbsp; Var2&amp;nbsp; Var3&amp;nbsp; Var4&amp;nbsp; Group&lt;/P&gt;&lt;P&gt;01&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;02&amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;03&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;04&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 23:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413518#M21687</guid>
      <dc:creator>Xiaoyi</dc:creator>
      <dc:date>2017-11-14T23:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate many logistic regression results/outputs include Odds Ratios 95%CI?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413522#M21688</link>
      <description>&lt;P&gt;Search on lexjansen.com for sample code. Though to be honest, I've found manipulating other peoples macros more difficult that writing my own from scratch. You may find a perfect example though...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another option is to reformat your data somehow so you can use BY group processing, this isn't always possible.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you need&amp;nbsp;further help, I suggest you post&amp;nbsp;&lt;/SPAN&gt;sample data as a data step and what you want as output. Anything you have so far is helpful as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118286"&gt;@Xiaoyi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear SAS Masters,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data (just a sample) like the following (real data have more variables). I want to calculate Odds Ratios (OR) and 95% CI using logistic regression models adjusting several other factors . Because I need to do it for more 100 variables, that means I will have to build more 100 + logistic models and then pick the OR and 95% from the results and then put in my report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does any master here have good solution that can put the outputs of many logistic models together in one or fewer tables? I can write Macro to deal with repeated logistic regression, but I am scratching my head for having to put these results all together. Only OR and 95%CI, whether they are together or separate, with or without other outputs, doesn't matter, as long as they can be aggregated in one table, that could save me tons of work. Thanks in advance if you could offer some programming tips.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Joy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Adjusted variables (co-variance): Adjust1 Adjust2&lt;/P&gt;
&lt;P&gt;Var1-Var4 compared between Group using logistic regression&lt;/P&gt;
&lt;P&gt;Group=1 as reference group, Group 2, Group 3 are all compared to Group 1, so the odds ratios are for 1 vs 2, 1 vs 3, etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; Adjust1&amp;nbsp; Adjust2&amp;nbsp; Var1&amp;nbsp; Var2&amp;nbsp; Var3&amp;nbsp; Var4&amp;nbsp; Group&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;02&amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;03&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;
&lt;P&gt;04&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 23:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413522#M21688</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T23:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate many logistic regression results/outputs include Odds Ratios 95%CI?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413524#M21689</link>
      <description>Note that I've merged your posts as they are identical.</description>
      <pubDate>Tue, 14 Nov 2017 23:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413524#M21689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T23:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate many logistic regression model outputs (odds ratio and 95%CI)?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413683#M21707</link>
      <description>&lt;P&gt;When you say "more than 100 variables," do you mean that there are 100 responses and the explanatory effects for each model are the same? For example, do the models look something like&lt;/P&gt;
&lt;P&gt;Y1 = X1-X4;&lt;/P&gt;
&lt;P&gt;Y2 = X1-X4;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Y100 = X1-X4;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, look transposing the data to long form and using BY-group analysis. The odds ratios and CIs will automatically appear in the same output table. For details, see &lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_self"&gt;"An easy way to run thousands of regressions in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413683#M21707</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-15T15:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: multiple logistic models output odds ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413695#M21709</link>
      <description>&lt;P&gt;You don't need a macro. Simply use the PERSIST option in an ODS OUTPUT statement to accumulate tables across multiple procedure runs.&amp;nbsp; For example, these statements save two tables across both procedure runs in the two named data sets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output FitStatistics(persist)=fs ModelInfo(persist)=mf;
proc logistic data=ingots;
model r/n=heat;
run;
proc logistic data=ingots;
model r/n=soak;
run;
ods output close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Find the name of the table you want to keep in the "Details: ODS Table Names" section of the PROC LOGISTIC documentation. You might also want to use the ODDSRATIO statement in PROC LOGISTIC to generate the odds ratios. Again, see the PROC LOGISTIC documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also see &lt;A href="http://support.sas.com/kb/46847" target="_self"&gt;this note&lt;/A&gt; for how to easily fit a series of models in separate procedure runs using a different predictor in each model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, note that if you run a bunch of separate models, the odds ratios you obtain for a particular predictor are only adjusted for the other predictors in the individual model. Any predictors that you want *adjusted* odds ratios for must have all of the predictors you want to adjust for in the model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-logistic-models-output-odds-ratios/m-p/413695#M21709</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-11-15T15:39:00Z</dc:date>
    </item>
  </channel>
</rss>

