<?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: Defining random statement for PROC GLIMMIX repeated measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789091#M38684</link>
    <description>&lt;P&gt;This is a linear mixed model. Is there a reason you want to use GLIMMIX instead of PROC MIXED?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_013/statug/statug_mixed_examples.htm" target="_self"&gt;The documentation for PROC MIXED&lt;/A&gt; contains examples of block designs and repeated measures.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jan 2022 23:40:06 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-01-08T23:40:06Z</dc:date>
    <item>
      <title>Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/788605#M38678</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am uncertain which of the statements I have for the random statement in my code is correct. I have a data set collected annually from the same set of plots and one treatment factor (with two levels) and three blocks. I am trying to determine the differences between the treatment levels using repeated measures.&lt;/P&gt;&lt;P&gt;Sample data&amp;nbsp;&lt;/P&gt;&lt;P&gt;Treatment Block Year Yield&amp;nbsp;@@;&lt;/P&gt;&lt;P&gt;0 1 2008 50&lt;/P&gt;&lt;P&gt;50 1 2008 75&lt;/P&gt;&lt;P&gt;0 2 2008 65&lt;/P&gt;&lt;P&gt;50 2 2008 85&lt;/P&gt;&lt;P&gt;0 1 2010 45&lt;/P&gt;&lt;P&gt;50 1 2010 65&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First code:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glimmix data = Hist plots = studentpanel;
class block treatment Year ;
model lScore_Mean = treatment|year ;
random block block*treatment;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CODE 1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67153i6A494C1446BB625F/image-size/large?v=v2&amp;amp;px=999" role="button" title="CODE 1.png" alt="CODE 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second code:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glimmix data = Hist.SHAPE plots=residualpanel;
class block treatment Year ;
model lScore_Mean = treatment|year / ddfm=kr2;
random intercept / subject=block ;
random year / residual subject=block*treatment;
covtest 'Is GLM OK?' glm;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CODE2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67155i50B262363ADBF245/image-size/large?v=v2&amp;amp;px=999" role="button" title="CODE2.png" alt="CODE2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The results of the first code showed the treatment effect was not significant (p&amp;gt;0.1) while the results of the second code showed the treatment effect was significant (p&amp;lt;0.1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to get similar results but it seems I am not clear about the denominator degrees of freedom. I got different answers and I am not sure which one is right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 05:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/788605#M38678</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2022-01-06T05:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789041#M38679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have moved your post to the "Statistical Procedures" board.&lt;/P&gt;
&lt;P&gt;More chance to get a good answer here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 15:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789041#M38679</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-01-08T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789063#M38680</link>
      <description>&lt;P&gt;Can you clarify your experiment? The data seem to say that each block received Treatment=0 and Treatment=50 in the same year?&amp;nbsp; Is that correct? I don't understand how the block can get both treatments at the same time.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 18:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789063#M38680</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-01-08T18:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789076#M38681</link>
      <description>Thank you for the question. I forgot to mention that the treatments 0 and 50 were applied only once in the same year, say the year 2000, to different plots. So we have 3 blocks and one treatment with 2 levels (0 and 50) (6 plots in all) and data collected from the same 6 plots annually (2000 till 2020).</description>
      <pubDate>Sat, 08 Jan 2022 21:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789076#M38681</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2022-01-08T21:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789079#M38682</link>
      <description>I meant data collected biennially (2000 till 2020).</description>
      <pubDate>Sat, 08 Jan 2022 21:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789079#M38682</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2022-01-08T21:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789080#M38683</link>
      <description>&lt;P&gt;I have reposted the sample data&lt;/P&gt;&lt;P&gt;Treatment Block Year Yield&amp;nbsp;@@;&lt;/P&gt;&lt;P&gt;0 1 2008 50&lt;/P&gt;&lt;P&gt;50 1 2008 75&lt;/P&gt;&lt;P&gt;0 2 2008 65&lt;/P&gt;&lt;P&gt;50 2 2008 85&lt;/P&gt;&lt;P&gt;0 3 2008 65&lt;/P&gt;&lt;P&gt;50 3 2008 85&lt;/P&gt;&lt;P&gt;0 1 2010 45&lt;/P&gt;&lt;P&gt;50 1 2010 65&lt;/P&gt;&lt;P&gt;0 2 2010 65&lt;/P&gt;&lt;P&gt;50 2 2010 85&lt;/P&gt;&lt;P&gt;0 3 2010 65&lt;/P&gt;&lt;P&gt;50 3 2010 85&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 21:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789080#M38683</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2022-01-08T21:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789091#M38684</link>
      <description>&lt;P&gt;This is a linear mixed model. Is there a reason you want to use GLIMMIX instead of PROC MIXED?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_013/statug/statug_mixed_examples.htm" target="_self"&gt;The documentation for PROC MIXED&lt;/A&gt; contains examples of block designs and repeated measures.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 23:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789091#M38684</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-01-08T23:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789116#M38685</link>
      <description>Thank you for the link to the documentation. There is no obvious reason for using GLIMMIX.</description>
      <pubDate>Sun, 09 Jan 2022 05:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789116#M38685</guid>
      <dc:creator>iatoloye</dc:creator>
      <dc:date>2022-01-09T05:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Defining random statement for PROC GLIMMIX repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789264#M38693</link>
      <description>&lt;P&gt;You will find that GLIMMIX does some rather unusual things with denominator degrees of freedom, at least in my opinion (see the documentation - Details&amp;gt;Degrees of Freedom Methods for a full discussion).&amp;nbsp; Check the output - in the Model Information table, it will indicate which method is used.&amp;nbsp; That is most likely the source of the difference you are seeing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 15:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Defining-random-statement-for-PROC-GLIMMIX-repeated-measures/m-p/789264#M38693</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-01-10T15:24:23Z</dc:date>
    </item>
  </channel>
</rss>

