<?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 conduct 3-way MANOVA using Maximum Likelihood? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-conduct-3-way-MANOVA-using-Maximum-Likelihood/m-p/215431#M11656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to translate the data into a form where y1 through y4 are considered repeated measures on each subject (not necessarily repeated in time, but representing multiple measures on each subject).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data long;&lt;/P&gt;&lt;P&gt;set mydata;&lt;/P&gt;&lt;P&gt;value=y1;type=1;output;&lt;/P&gt;&lt;P&gt;value=y2;type=2;output;&lt;/P&gt;&lt;P&gt;value=y3;type=3;output;&lt;/P&gt;&lt;P&gt;value=y4;type=4;output;&lt;/P&gt;&lt;P&gt;drop y1-y4;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code assumes that there is some variable that indexes the subjects, which I will refer to as subjectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=long;&lt;/P&gt;&lt;P&gt;class x1 x2 x3 type subjectid;&lt;/P&gt;&lt;P&gt;model &lt;A href="mailto:value=x1|x2|x3@2"&gt;value=x1|x2|x3@2&lt;/A&gt; type;&lt;/P&gt;&lt;P&gt;repeated type/subject=subjectid type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you may need to cross type with the x variables to get reasonable least squares means for the 4 y values.&amp;nbsp; In that case, I would change the code to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=long;&lt;/P&gt;&lt;P&gt;class x1 x2 x3 type subjectid;&lt;/P&gt;&lt;P&gt;model &lt;A href="mailto:value=x1%7Cx2%7Cx3@2"&gt;value=x1|x2|x3&lt;/A&gt;|type;&lt;/P&gt;&lt;P&gt;repeated type/subject=subjectid type=un;&lt;/P&gt;&lt;P&gt;lsmeans &amp;lt;insert appropriate combinations here&amp;gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 12:30:44 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2015-04-09T12:30:44Z</dc:date>
    <item>
      <title>How to conduct 3-way MANOVA using Maximum Likelihood?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-conduct-3-way-MANOVA-using-Maximum-Likelihood/m-p/215430#M11655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Dear all, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;The missingness of&amp;nbsp; all variables of interest was ranged from 3.3% to 12% in my dataset (simple cross-sectional and single-level). I was trying to conduct 3-way MANOVA use ML to handle missing data but constantly got errors. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;How should I fix it? Do I have to use PROC MIXED to get ML estimates, although my dataset is not mixed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Thank you very much!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc mixed data = mydata method=ml;&lt;/P&gt;&lt;P&gt;class x1 x2 x3;&lt;/P&gt;&lt;P&gt;model y1 y2 y3 y4 = x1 x2 x3 x1*x2 x1*x3 x2*x3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 21:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-conduct-3-way-MANOVA-using-Maximum-Likelihood/m-p/215430#M11655</guid>
      <dc:creator>Rachel_L</dc:creator>
      <dc:date>2015-04-02T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct 3-way MANOVA using Maximum Likelihood?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-conduct-3-way-MANOVA-using-Maximum-Likelihood/m-p/215431#M11656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to translate the data into a form where y1 through y4 are considered repeated measures on each subject (not necessarily repeated in time, but representing multiple measures on each subject).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data long;&lt;/P&gt;&lt;P&gt;set mydata;&lt;/P&gt;&lt;P&gt;value=y1;type=1;output;&lt;/P&gt;&lt;P&gt;value=y2;type=2;output;&lt;/P&gt;&lt;P&gt;value=y3;type=3;output;&lt;/P&gt;&lt;P&gt;value=y4;type=4;output;&lt;/P&gt;&lt;P&gt;drop y1-y4;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code assumes that there is some variable that indexes the subjects, which I will refer to as subjectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=long;&lt;/P&gt;&lt;P&gt;class x1 x2 x3 type subjectid;&lt;/P&gt;&lt;P&gt;model &lt;A href="mailto:value=x1|x2|x3@2"&gt;value=x1|x2|x3@2&lt;/A&gt; type;&lt;/P&gt;&lt;P&gt;repeated type/subject=subjectid type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you may need to cross type with the x variables to get reasonable least squares means for the 4 y values.&amp;nbsp; In that case, I would change the code to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=long;&lt;/P&gt;&lt;P&gt;class x1 x2 x3 type subjectid;&lt;/P&gt;&lt;P&gt;model &lt;A href="mailto:value=x1%7Cx2%7Cx3@2"&gt;value=x1|x2|x3&lt;/A&gt;|type;&lt;/P&gt;&lt;P&gt;repeated type/subject=subjectid type=un;&lt;/P&gt;&lt;P&gt;lsmeans &amp;lt;insert appropriate combinations here&amp;gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 12:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-conduct-3-way-MANOVA-using-Maximum-Likelihood/m-p/215431#M11656</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-04-09T12:30:44Z</dc:date>
    </item>
  </channel>
</rss>

