<?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: Analyzing data with experimental replications in PROC MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934485#M46592</link>
    <description>&lt;P&gt;I think here 'experiment ' is just like subject_id variable in classical MIXED model.&lt;BR /&gt;You should NOT include subject_id in MODEL , since it is stands for a cluster/strata for mixed effect.&lt;BR /&gt;You should remove it from MODEL statement . Like:&lt;BR /&gt;&lt;BR /&gt;model value = group|condition experiment/solution outpred=check;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;random&amp;nbsp; group/ subject=experiment g v vcorr;&lt;/SPAN&gt;&lt;BR /&gt;----&amp;gt;&lt;BR /&gt;model value = &lt;STRONG&gt;group|condition&lt;/STRONG&gt; /solution outpred=check;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;random&amp;nbsp; &lt;STRONG&gt;int&lt;/STRONG&gt;&amp;nbsp; group/ subject=experiment g v vcorr;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 02:05:57 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-07-03T02:05:57Z</dc:date>
    <item>
      <title>Analyzing data with experimental replications in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934420#M46587</link>
      <description>&lt;P&gt;I am analyzing data from animal experiments. Each experiment includes a response variable (continuous),&amp;nbsp; group {A, B}, condition(X, Y, Z}. The same experiment is replicated multiple times (5 times in this dataset) to ensure reproducibility. I want the model to account for the variability between replicates. The experiment-specific estimates are NOT my interest. I am using it as a blocking variable. I initially used it as a random effect to account for the fact that group effects can vary across different experiments. Then, I included the experiment as a fixed effect in addition to the random effect, which improves the model tremendously (the covariance parameter estimates were reduced from 20.6 to 5.8, And the AIC for the model was reduced from 703 to 676. Consequently, the confidence intervals for LS-means estimates were tighter when the experiment was included as a fixed effect as well as a random effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question&lt;/STRONG&gt;: Is it okay to include the 'experiment' variable in the model this way? Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc mixed &lt;/STRONG&gt;data=lumi maxiter=1000 covtest;&lt;/P&gt;&lt;P&gt;class group(ref="flox")&amp;nbsp; experiment condition (ref="Basal");&lt;/P&gt;&lt;P&gt;model value = group|condition experiment/solution outpred=check;&lt;/P&gt;&lt;P&gt;random&amp;nbsp; group/ subject=experiment g v vcorr;&lt;/P&gt;&lt;P&gt;lsmeans group*condition/cl slice=condition pdiff=control('flox' 'Basal') adjust=dunnett;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any insight would be much appreciated!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934420#M46587</guid>
      <dc:creator>Shah_Biostat</dc:creator>
      <dc:date>2024-07-02T15:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing data with experimental replications in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934485#M46592</link>
      <description>&lt;P&gt;I think here 'experiment ' is just like subject_id variable in classical MIXED model.&lt;BR /&gt;You should NOT include subject_id in MODEL , since it is stands for a cluster/strata for mixed effect.&lt;BR /&gt;You should remove it from MODEL statement . Like:&lt;BR /&gt;&lt;BR /&gt;model value = group|condition experiment/solution outpred=check;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;random&amp;nbsp; group/ subject=experiment g v vcorr;&lt;/SPAN&gt;&lt;BR /&gt;----&amp;gt;&lt;BR /&gt;model value = &lt;STRONG&gt;group|condition&lt;/STRONG&gt; /solution outpred=check;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;random&amp;nbsp; &lt;STRONG&gt;int&lt;/STRONG&gt;&amp;nbsp; group/ subject=experiment g v vcorr;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 02:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934485#M46592</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-03T02:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing data with experimental replications in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934956#M46608</link>
      <description>&lt;P&gt;Thanks so much, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&amp;nbsp;for your response. Very helpful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I re-ran the model as you suggested, and covariance parameter estimates make more sense now!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 12:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-data-with-experimental-replications-in-PROC-MIXED/m-p/934956#M46608</guid>
      <dc:creator>Shah_Biostat</dc:creator>
      <dc:date>2024-07-08T12:39:39Z</dc:date>
    </item>
  </channel>
</rss>

