<?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: mixed model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956506#M47870</link>
    <description>&lt;P&gt;You could repeat the code, but modifying the response variable.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2025 08:11:02 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-01-18T08:11:02Z</dc:date>
    <item>
      <title>mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956493#M47868</link>
      <description>&lt;P&gt;Hello, back SAS community,&lt;/P&gt;
&lt;P&gt;Why can we not run more than one response variable in the model line when performing a model using a mixed procedure?&lt;/P&gt;
&lt;P&gt;For example, if we want to try something other to gain according to school ....it will be an error. How to do this, please?&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc mixed data=test_scores;
class school ethnicity gender teacher;
model gain = school ethnicity gender / solution;
random int / subject=teacher;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 00:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956493#M47868</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2025-01-18T00:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956505#M47869</link>
      <description>I don't understand what you mean .&lt;BR /&gt;You mean have two or three Y variable in mixed model,  like this ?&lt;BR /&gt;model gain height weight = school ethnicity gender / solution;&lt;BR /&gt;&lt;BR /&gt;Any GLM or Mixed model is not able to have more than one Y variable. If you really need multiple Y variables, you could try PROC PLS , but that is not builded a Mixed Model.</description>
      <pubDate>Sat, 18 Jan 2025 06:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956505#M47869</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-18T06:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956506#M47870</link>
      <description>&lt;P&gt;You could repeat the code, but modifying the response variable.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 08:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956506#M47870</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-01-18T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956518#M47872</link>
      <description>&lt;P&gt;thank you for your reply,&amp;nbsp; so in this case. we try one by one ...&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 13:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956518#M47872</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2025-01-18T13:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956519#M47873</link>
      <description>&lt;P&gt;Thank you for your answer. So why in GLM we can test multiple response variables and multiple factors but in the mixed only one response variable and multiple factors? The mixed model is not more sophisticated.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 13:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956519#M47873</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2025-01-18T13:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956533#M47874</link>
      <description>&lt;P&gt;Why? Does it matter? You can't do it in MIXED, so the solution is to run MIXED several times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really need to know why, perhaps&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;has an explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"The mixed model is not more sophisticated" -- again, does it matter, MIXED does what it does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And actually it is with respect to estimating the effect of the X-variables, a lot more sophisticated models can be fit with MIXED than you can fit with GLM.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 16:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956533#M47874</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-01-18T16:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956542#M47875</link>
      <description>&lt;P&gt;Thanks a lot for your answer. It is only to know this information which you are giving...&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 19:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956542#M47875</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2025-01-18T19:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956556#M47876</link>
      <description>"So why in GLM we can test multiple response variables "&lt;BR /&gt;That is the same as repeated multiple times PROC GLM. &lt;BR /&gt;For example:&lt;BR /&gt;proc glm;&lt;BR /&gt;model height weight= a b;&lt;BR /&gt;quit;&lt;BR /&gt;is the same as&lt;BR /&gt;proc glm;&lt;BR /&gt;model height=a b;&lt;BR /&gt;quit;&lt;BR /&gt;proc glm;&lt;BR /&gt;model weight=a b;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Therefore, if you want do the same thing for PROC MIXED, as Paige said repeat proc mixed several times.&lt;BR /&gt;For example:&lt;BR /&gt;proc mixed;&lt;BR /&gt;model height=a b;&lt;BR /&gt;random int/subject=subj;&lt;BR /&gt;run;&lt;BR /&gt;proc mixed;&lt;BR /&gt;model weight=a b;&lt;BR /&gt;random int/subject=subj;&lt;BR /&gt;run;</description>
      <pubDate>Sun, 19 Jan 2025 01:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956556#M47876</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-19T01:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956676#M47884</link>
      <description>&lt;P&gt;Hey everyone - there is a way to use PROC MIXED to fit multiple response variables. A good example can be found in the documentation for the TYPE= option for the REPEATED statement. Look at TYPE=UN@AR(1), where Height and Weight for children measured over time is given. The code suggested is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed;
   class Var Year Child;
   model Y = Var Year Var*Year;
   repeated Var Year / type=un@ar(1)
                       subject=Child;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A similar situation is included in the PROC GLIMMIX documentation, but is much more difficult to implement. Start with the example: Joint Modeling of Binary and Count Data. Note that this approach requires different distribution types for each of the dependent variables, which is not required for the PROC MIXED method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 16:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/mixed-model/m-p/956676#M47884</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2025-01-20T16:13:44Z</dc:date>
    </item>
  </channel>
</rss>

