<?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: Two repeated measures in GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459867#M24002</link>
    <description>&lt;P&gt;I am not yet able to provide any advice about your model specification because your description does not clearly identify your experimental design. The resources that I suggested in my previous message will help you determine (1) your fixed effects factors, (2) your random effects factors, and (3) how levels of your fixed effects factors are (ideally) randomly assigned to levels of&amp;nbsp;the appropriate random effects factors. Once these design elements are clear, we may be able to suggest appropriate model specifications.&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 21:43:49 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2018-05-03T21:43:49Z</dc:date>
    <item>
      <title>Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459154#M23982</link>
      <description>&lt;P&gt;HI Everyone!&lt;/P&gt;&lt;P&gt;I was trying on GLIMMIX SAS procedure. I have five independent variables in my data,i.e source, cpg, ICC, BMI and IDD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Among those variable source and cpq are repeated measured variables in which variable source have two categories(source1 and&lt;/P&gt;&lt;P&gt;source2). Each level of source contains three categories of cpq(cpq1,cpq2 and cpq3). This means cpq variable is nested into source and source nested to each individuals. My response variable is binary(Resp). How can i account correlation for the two variable source and cpq. Here note that: these two repeated variables are also my interest that i need to see their effect on the response variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the sas code below. Could you comment by correcting it so that the model can account the correlation and correctly&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate effects of variable on the response.&lt;/P&gt;&lt;P&gt;proc glimmix data=Thesis.data;&lt;BR /&gt;class &lt;SPAN&gt;source cpg&amp;nbsp;IDD&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;;&lt;BR /&gt;model Resp= &lt;SPAN&gt;&amp;nbsp;source cpg ICC BMI IDD&amp;nbsp;&lt;/SPAN&gt;/ dist=bin solution;&lt;BR /&gt;random intercept /subject=&lt;SPAN&gt;source&amp;nbsp;&lt;/SPAN&gt;type=cs;&lt;BR /&gt;&lt;SPAN&gt;random intercept /subject=cpg&amp;nbsp;type=cs;&lt;/SPAN&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 00:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459154#M23982</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2018-05-02T00:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459175#M23983</link>
      <description>&lt;P&gt;Moved to "SAS procedures" forum.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 03:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459175#M23983</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-05-02T03:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459528#M23989</link>
      <description>&lt;P&gt;When you are working with mixed models, it is important to clearly distinguish between experimental &lt;EM&gt;treatments&lt;/EM&gt; (fixed effects factors) and experimental &lt;EM&gt;units&lt;/EM&gt; (random effects factors).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In GLIMMIX, factors in the MODEL statement are fixed effects factors: they determine the mean of the response. Subjects in the RANDOM statements identify random effects factors that determine the variance of the response; we may use fixed effects factor &lt;EM&gt;names&lt;/EM&gt; to identify levels of a random effects, which&amp;nbsp;will be confusing until you fully understand how the GLIMMIX syntax works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, you are using SOURCE and CPG as &lt;EM&gt;both&lt;/EM&gt; fixed and random effects factors, which is incorrect and suggests that your understanding of how to implement a mixed model is GLIMMIX is not yet sufficient. You'll find these references useful to study:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/store/books/categories/usage-and-reference/sas-for-mixed-models-second-edition/prodBK_59882_en.html?storeCode=SAS_US" target="_self"&gt;SAS® for Mixed Models, Second Edition&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.crcpress.com/Generalized-Linear-Mixed-Models-Modern-Concepts-Methods-and-Applications/Stroup/p/book/9781439815120" target="_self"&gt;Generalized Linear Mixed Models: Modern Concepts, Methods and Applications&lt;/A&gt;&amp;nbsp;(especially Ch 2, 7, and &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 01:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459528#M23989</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-05-03T01:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459858#M24001</link>
      <description>Dear Sld:&lt;BR /&gt;Thank you for your nice advice. But still i am confusing that how can i account the correlation of subjects due to those two variables in one model.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2018 21:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459858#M24001</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2018-05-03T21:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459867#M24002</link>
      <description>&lt;P&gt;I am not yet able to provide any advice about your model specification because your description does not clearly identify your experimental design. The resources that I suggested in my previous message will help you determine (1) your fixed effects factors, (2) your random effects factors, and (3) how levels of your fixed effects factors are (ideally) randomly assigned to levels of&amp;nbsp;the appropriate random effects factors. Once these design elements are clear, we may be able to suggest appropriate model specifications.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 21:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459867#M24002</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-05-03T21:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459874#M24003</link>
      <description>Ok!&lt;BR /&gt;1) all variables source, cpg, ICC, BMI and IDD are my fixed effects, i.e i want to see their effect on the response variable(Resp). But here cpg is nested to source and source nested to subject ID(i.e from one subject both source 1 and source 2 were measured ). Now the point is that since the two levels of source and three levels of cpg that nested into source is measured from the same subject there will be correlation. How can i account this correlation?&lt;BR /&gt;2)Subject ID is my random effect.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2018 22:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459874#M24003</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2018-05-03T22:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459888#M24004</link>
      <description>&lt;P&gt;Given that your dataset name is "Thesis.data", you will have written, or soon will be writing, a Methods section that describes your experiment. If you are willing to share, that would be useful and would contain the information we need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I am &lt;EM&gt;guessing&lt;/EM&gt; about your experimental design:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apparently you have subjects. Subjects is a random effects factor. Each subject has a single value of ICC, BMI, and IDD, which are fixed effects factors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each subject is "subdivided" into two sub-units; sub-units are nested within subject. Sub-units&amp;nbsp;is a random effects factor. One sub-unit is assigned to one level of SOURCE. SOURCE is a fixed effects factor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each sub-unit is "subdivided" into three sub-sub-units; sub-sub-units are nested with sub-unit. Sub-sub-units is a random effects factor. One sub-sub-unit is assigned to one level of CPG. CPG is a fixed effects factor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CPG is nested within SOURCE &lt;EM&gt;only&lt;/EM&gt; if the three levels of CPG for SOURCE=1 are different than the three levels of CPG for SOURCE=2. If you have only 3 levels of CPG and these 3 levels are used with both SOURCE =1 and =2, then CPG is &lt;EM&gt;crossed&lt;/EM&gt; with SOURCE. If these concepts of "nested" and "crossed" are unfamiliar to you, then you need to study the resources I suggested. Another good resource is&amp;nbsp;&lt;A href="https://www.crcpress.com/Analysis-of-Messy-Data-Volume-1-Designed-Experiments-Second-Edition/Milliken-Johnson/p/book/9781584883340" target="_self"&gt;Analysis of Messy Data Volume 1: Designed Experiments, Second Edition&lt;/A&gt;. Once you've done that, feel free to post code if you would still like feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 22:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459888#M24004</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-05-03T22:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Two repeated measures in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459900#M24005</link>
      <description>Ok! Thank you much in advance!!!</description>
      <pubDate>Thu, 03 May 2018 23:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-repeated-measures-in-GLIMMIX/m-p/459900#M24005</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2018-05-03T23:54:07Z</dc:date>
    </item>
  </channel>
</rss>

