<?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 model with random and repeated statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796683#M39155</link>
    <description>&lt;P&gt;I have fitted a model using proc mixed once with Random statement and once with with repeated statement, then fitted the same model using proc genmode. I expected to see similar results. why variable outcome is significant when I use Genmod and not significant When I use Proc MIxed with Random statement and borderline significant when I use Proc mixed with repeated statement. Y is measured three time on each subject , outcome is a binary variable (Yes, NO), and Time (1,2,3) refers the ordering of the measurement time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data = mine;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class outcome id time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y = outcome time&amp;nbsp;&amp;nbsp; /ddfm=kr2 solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;random int /type=un subject =Id;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data = mine;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class outcome id time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y = outcome time&amp;nbsp;&amp;nbsp; /ddfm=kr2 solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repeated /type =un subject =id;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;GENMOD&lt;/STRONG&gt;&amp;nbsp;DATA =mine;&lt;/P&gt;&lt;P&gt;&amp;nbsp;CLASS id time outcome;&lt;/P&gt;&lt;P&gt;MODEL y= outcome time;&lt;/P&gt;&lt;P&gt;REPEATED SUBJECT=id / TYPE=UN CORRW; &lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 19:54:34 GMT</pubDate>
    <dc:creator>fdehkord</dc:creator>
    <dc:date>2022-02-16T19:54:34Z</dc:date>
    <item>
      <title>Mixed model with random and repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796683#M39155</link>
      <description>&lt;P&gt;I have fitted a model using proc mixed once with Random statement and once with with repeated statement, then fitted the same model using proc genmode. I expected to see similar results. why variable outcome is significant when I use Genmod and not significant When I use Proc MIxed with Random statement and borderline significant when I use Proc mixed with repeated statement. Y is measured three time on each subject , outcome is a binary variable (Yes, NO), and Time (1,2,3) refers the ordering of the measurement time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data = mine;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class outcome id time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y = outcome time&amp;nbsp;&amp;nbsp; /ddfm=kr2 solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;random int /type=un subject =Id;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data = mine;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class outcome id time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y = outcome time&amp;nbsp;&amp;nbsp; /ddfm=kr2 solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repeated /type =un subject =id;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;GENMOD&lt;/STRONG&gt;&amp;nbsp;DATA =mine;&lt;/P&gt;&lt;P&gt;&amp;nbsp;CLASS id time outcome;&lt;/P&gt;&lt;P&gt;MODEL y= outcome time;&lt;/P&gt;&lt;P&gt;REPEATED SUBJECT=id / TYPE=UN CORRW; &lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 19:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796683#M39155</guid>
      <dc:creator>fdehkord</dc:creator>
      <dc:date>2022-02-16T19:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed model with random and repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796726#M39163</link>
      <description>&lt;P&gt;PROC GENMOD with the REPEATED statement fits a Generalized Estimating Equations (GEE) model using a GEE algorithm. PROC MIXED with the REPEATED statement fits the model by maximum likelihood. The different fitting methods can be expected to give different results. MIXED with the RANDOM statement fits a subject-specific model (for making inferences or predictions on individual subjects) while GENMOD fits a population-averaged model (for making overall, population inferences/predictions) and these are also expected to differ.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 22:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796726#M39163</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-02-16T22:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed model with random and repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796863#M39177</link>
      <description>&lt;P&gt;In addition to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp; said, note that your response variable is binary, and none of your PROC codes take that into account.&amp;nbsp; The REML/ML methods in MIXED are conditional on the random effects, while the GEE methods in GENMOD are marginal estimates, so I am not surprised that the results are different, and both could be biased (but by different amounts) due to the assumption of normal errors, depending on the sample size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 13:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796863#M39177</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-02-17T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed model with random and repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796961#M39179</link>
      <description>Thank you for your explanation. Now the question is which method should be&lt;BR /&gt;used if the goal is to evaluate the relationship between HBCO and the&lt;BR /&gt;outcome?&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Feb 2022 18:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/796961#M39179</guid>
      <dc:creator>fdehkord</dc:creator>
      <dc:date>2022-02-17T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed model with random and repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/797060#M39181</link>
      <description>&lt;P&gt;That sounds like a population inference rather than predicting at the individual level. If so, then the GEE model is probably what you want. But note that PROC GEE is the newer procedure for fitting this model and is recommended over GENMOD for that purpose. It uses essentially identical syntax. Also, it is not clear whether the response variable (Y in your initial post) is continuous or binary. If it is binary then you should specify the DIST=BIN in the MODEL statement. In any case, you should use the DIST= option to specify the appropriate distribution for your response variable.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-model-with-random-and-repeated-statement/m-p/797060#M39181</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-02-17T20:31:58Z</dc:date>
    </item>
  </channel>
</rss>

