<?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: GLIMMIX Procedure -  modelling multiple variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589333#M28833</link>
    <description>&lt;P&gt;The article&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;
&lt;P&gt;provides a macro solution and also a By-group solution. For the By-group solution, you transform the data from wide to long, then use a BY statement to run the 14 regression models. The article shows how to perform regressions of the form&lt;/P&gt;
&lt;P&gt;Y = X1&lt;/P&gt;
&lt;P&gt;Y= X2&lt;/P&gt;
&lt;P&gt;Y = X3&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;but it should be clear how to modify the technique to model&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y1 = X&lt;/P&gt;
&lt;P&gt;Y2 = X&lt;/P&gt;
&lt;P&gt;Y3&amp;nbsp; = X&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 12:43:02 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-09-17T12:43:02Z</dc:date>
    <item>
      <title>GLIMMIX Procedure -  modelling multiple variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589291#M28830</link>
      <description>&lt;P&gt;Good day dear professionals!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using PROC GLM, one can compute the statistic of more than one dependent variable within the same PROC GLM syntax.&lt;/P&gt;&lt;P&gt;Take for example, the following pseudo code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLM DATA = input_dataset;

CLASS class_var1;

MODEL dependent_var1 dependent_var2 dependen_var3 = class_var1;

LSMEANS class_var1 / ADJUST = adj_method CL;

RUN;

QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, for PROC GLIMMIX, one can only model just one response variable within one GLIMMIX syntax. And in my case, I have up to 14 response variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be kind enough to share with me a macro (or something similar) with which I can instruct PROC GLIMMIX to repeat the modelling step for the other variables I have in my data set? I will be sincerely grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;SIncerely,&lt;/P&gt;&lt;P&gt;Dami.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 09:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589291#M28830</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2019-09-17T09:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Procedure -  modelling multiple variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589324#M28831</link>
      <description>&lt;P&gt;Not a direct answer to your question, but the way you have written this example, there is no need for PROC GLIMMIX; you can use PROC GLM which does allow multiple Y variables in the MODEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now perhaps the real problem is more complicated than this example, and you really do need PROC GLIMMIX, in which case you will need a simple macro.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589324#M28831</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-17T12:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Procedure -  modelling multiple variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589328#M28832</link>
      <description>&lt;P&gt;I'm dealing with count data. GLM can't correctly model count data. That's why I need GLIMMIX to accommodate for overdispersion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I need a macro but I can't write one because i don't have the know-how to do so. That's why I asked.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589328#M28832</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2019-09-17T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Procedure -  modelling multiple variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589333#M28833</link>
      <description>&lt;P&gt;The article&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;
&lt;P&gt;provides a macro solution and also a By-group solution. For the By-group solution, you transform the data from wide to long, then use a BY statement to run the 14 regression models. The article shows how to perform regressions of the form&lt;/P&gt;
&lt;P&gt;Y = X1&lt;/P&gt;
&lt;P&gt;Y= X2&lt;/P&gt;
&lt;P&gt;Y = X3&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;but it should be clear how to modify the technique to model&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y1 = X&lt;/P&gt;
&lt;P&gt;Y2 = X&lt;/P&gt;
&lt;P&gt;Y3&amp;nbsp; = X&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589333#M28833</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-09-17T12:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Procedure -  modelling multiple variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589357#M28834</link>
      <description>&lt;P&gt;Thank you very much Rick!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks very much like the help I need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm grateful!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 13:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Procedure-modelling-multiple-variables/m-p/589357#M28834</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2019-09-17T13:33:14Z</dc:date>
    </item>
  </channel>
</rss>

