<?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 Mixed to Glimmix in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Mixed-to-Glimmix/m-p/116579#M32168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some trouble with the glimmix procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, here is what I want to do: I want to take the following code that utilizes the mixed procedure, and write equivalent code that uses the glimmix procedure.&amp;nbsp; From what I understand, I can get both the mixed and glimmix procedures to produce (roughly) the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is non-normal, which is why I need glimmix.&amp;nbsp; But I want a starting point to work off of.&amp;nbsp; I know the mixed procedure will run properly, so I want to make sure my glimmix code runs properly as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code for the mixed procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=sasuser.w_400_2012 method=reml;&lt;/P&gt;&lt;P&gt;class ID track_type;&lt;/P&gt;&lt;P&gt;model l_time = fixed_date track_type / s residual outp=work.resid;&lt;/P&gt;&lt;P&gt;random int fixed_date / subject=ID;&lt;/P&gt;&lt;P&gt;repeated / subject=ID type=SP(POW)(fixed_date);&lt;/P&gt;&lt;P&gt;lsmeans track_type / diff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can help me, that would be AWESOME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you need more info, just let me know &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 00:26:44 GMT</pubDate>
    <dc:creator>elfkitty12</dc:creator>
    <dc:date>2013-02-21T00:26:44Z</dc:date>
    <item>
      <title>Mixed to Glimmix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mixed-to-Glimmix/m-p/116579#M32168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some trouble with the glimmix procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, here is what I want to do: I want to take the following code that utilizes the mixed procedure, and write equivalent code that uses the glimmix procedure.&amp;nbsp; From what I understand, I can get both the mixed and glimmix procedures to produce (roughly) the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is non-normal, which is why I need glimmix.&amp;nbsp; But I want a starting point to work off of.&amp;nbsp; I know the mixed procedure will run properly, so I want to make sure my glimmix code runs properly as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code for the mixed procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=sasuser.w_400_2012 method=reml;&lt;/P&gt;&lt;P&gt;class ID track_type;&lt;/P&gt;&lt;P&gt;model l_time = fixed_date track_type / s residual outp=work.resid;&lt;/P&gt;&lt;P&gt;random int fixed_date / subject=ID;&lt;/P&gt;&lt;P&gt;repeated / subject=ID type=SP(POW)(fixed_date);&lt;/P&gt;&lt;P&gt;lsmeans track_type / diff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can help me, that would be AWESOME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you need more info, just let me know &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 00:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mixed-to-Glimmix/m-p/116579#M32168</guid>
      <dc:creator>elfkitty12</dc:creator>
      <dc:date>2013-02-21T00:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed to Glimmix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mixed-to-Glimmix/m-p/116580#M32169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since GLIMMIX does not support the REPEATED statement as such, instead using _residual_ in a random statement, you might try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=sasuser.w_400_2012 method=reml;&lt;/P&gt;&lt;P&gt;class ID track_type;&lt;/P&gt;&lt;P&gt;model l_time = fixed_date track_type / s residual outp=work.resid;&lt;/P&gt;&lt;P&gt;random int fixed_date / subject=ID;&lt;/P&gt;&lt;P&gt;random _residual_ / subject=ID type=SP(POW)(fixed_date);&lt;/P&gt;&lt;P&gt;lsmeans track_type / diff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you shift over to a non-Gaussian distribution, take care, as most of the distributions are such that the means and variances are not independent, and perhaps should be modeled as G-side "repeated" rather than R-side "repeated".&amp;nbsp; See Walt Stroup's &lt;EM&gt;Generalized Linear Mixed Models &lt;/EM&gt;(2013) for an interesting take on this.&amp;nbsp; A great book, with tons of GLIMMIX examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 12:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mixed-to-Glimmix/m-p/116580#M32169</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-21T12:30:09Z</dc:date>
    </item>
  </channel>
</rss>

