<?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: Variable confounds with residual in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366675#M61640</link>
    <description>&lt;P&gt;OK, got you&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 01:29:15 GMT</pubDate>
    <dc:creator>Mickyboy</dc:creator>
    <dc:date>2021-03-10T01:29:15Z</dc:date>
    <item>
      <title>Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366290#M61604</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;l am attempting to analyse data for an interlab study with a mixed model, its a nested design with 5 variables, the dependant variable is titers, the structure of my analysis is as follows&lt;/P&gt;&lt;P&gt;&lt;U&gt;Fixed Effect&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Sample (30 of)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Random Effects&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Sample*Lab (3 levels)&lt;BR /&gt;Sample*Day (3 Levels)&lt;BR /&gt;Sample*Run (2 Levels)&lt;BR /&gt;Replicate[Sample,Lab,Day,Run] (replicate has 2 levels)&lt;BR /&gt;Sample*Lab*Day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;l get the error message that&amp;nbsp;Replicate[Sample,Lab,Day,Run] confounds with residual, this is the first time i have encountered this message and i am not sure what its telling me, has anyone encountered this before and how did they overcome it??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:30:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366290#M61604</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2023-06-09T00:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366296#M61606</link>
      <description>&lt;P&gt;Thought l would reply to my own post, i think i have over complicated things, l have retried with a simplified model&lt;/P&gt;&lt;P&gt;Sample &amp;nbsp;&lt;FONT color="#ff0000"&gt;Fixed Effect&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Sample*Lab &amp;amp; Random &lt;FONT color="#ff0000"&gt;Lab Variance&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Run[Sample,Lab,Day] &amp;amp; Random &lt;FONT color="#ff0000"&gt;Run Variance&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Sample*Lab*Day &amp;amp; Random &lt;FONT color="#ff0000"&gt;Interaction between Lab and Day&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Sample*Day &amp;amp; Random&amp;nbsp;&lt;FONT color="#ff0000"&gt;Day Variance&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;the R2 is great, no convergence issues, no confounding, and is easy to explain.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any input would be appreciated&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:10:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366296#M61606</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2021-03-09T06:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366323#M61613</link>
      <description>&lt;P&gt;The residual is automatically the lowest random effect. If residual of each observation is actually the same as the replicate level of random effect, then they are confounded. Leave replicate out of the model. The residual estimate is the replicate estimate.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 10:26:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366323#M61613</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-09T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366326#M61614</link>
      <description>&lt;P&gt;Are you also including the main random effects of Lab, Run, and Day?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 10:28:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366326#M61614</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-09T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366675#M61640</link>
      <description>&lt;P&gt;OK, got you&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 01:29:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366675#M61640</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2021-03-10T01:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366678#M61641</link>
      <description>&lt;P&gt;l am Interpreting the interaction of sample*Lab, sample*Day, and Run[Sample,Lab,Day] as my main effects of Lab, Day and Run, so for lab, by including the random slopes and intercept l want to see the devaition for each lab from the average effect of sample, and this i will interepret as my main effect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 01:40:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366678#M61641</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2021-03-10T01:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366806#M61660</link>
      <description>&lt;P&gt;The deviation of each level from the mean is the simple main effect Sample, Lab, Day, and Run. Not the cross-products with Sample. The interaction terms capture how the effect of one variable depends on the level of another factor. So the term Day represents the average deviation of each day while the Sample*Day term represents how the average deviation of each day depends on the sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The nesting of levels like Run in Day, for example, might prevent you from estimating interaction effects.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 12:33:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366806#M61660</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-10T12:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366964#M61677</link>
      <description>&lt;P&gt;Thanks for your assistance &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;, its greatly appreciated, its interesting, and i guess it depends on the research question l want to answer and "how the average deviation of each day depends on the sample" is one of them, as the samples were sent from the one source so the variance should all be the same (foolish thinking ?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data structure is per the attached excel file, X 3 labs, so the correct syntax for the mixed model to estimate each levels % proportion of variation explained should look like this, all as random effects&lt;/P&gt;&lt;P&gt;Lab&lt;/P&gt;&lt;P&gt;Day[Lab]&lt;/P&gt;&lt;P&gt;Run[Day, Lab]&lt;/P&gt;&lt;P&gt;if i then wanted to include sample to see the % proportion of variation explained by sample l would then include sample as Random effect, drop it as a fixed effect and the syntax would look like this, all as random effects&lt;/P&gt;&lt;P&gt;Sample&lt;/P&gt;&lt;P&gt;Lab&lt;BR /&gt;Day[Lab]&lt;BR /&gt;Run[Day, Lab]&lt;/P&gt;&lt;P&gt;As sample doesnt fit into the data structure is just a main effect as well as Lab???&lt;/P&gt;&lt;P&gt;This intuitively feels correct to me, but any advice would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much&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>Wed, 10 Mar 2021 22:55:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366964#M61677</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2021-03-10T22:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366985#M61689</link>
      <description>&lt;P&gt;l might be overstating the number of levels in the data, if i wished to include the lowest level of data, replicate these would be correlated and the same could be said of run, not so for day therefore&lt;/P&gt;&lt;P&gt;Sample&lt;/P&gt;&lt;P&gt;Lab&lt;/P&gt;&lt;P&gt;Day&lt;/P&gt;&lt;P&gt;Run[Lab, Day]&lt;/P&gt;&lt;P&gt;Replicate[Lab,Day,Run]&lt;/P&gt;&lt;P&gt;So Sample, Lab and Day as main effects makes sense, and due to the clustering in Replicate and Run, they would need to specified as nested??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this sound right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 03:58:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/366985#M61689</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2021-03-11T03:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/367044#M61699</link>
      <description>&lt;P&gt;Sample as you define and use it is a FIXED effect on the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, include the main effects to address the primary questions. You may include cross-terms to estimate and test interaction effects if you suspect that the effect of the other factors change from one sample to another. Is that a reasonable expectation? Is there precedent for it? Or can it be ruled out a priori?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:59:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/367044#M61699</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-11T11:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable confounds with residual</title>
      <link>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/367047#M61700</link>
      <description>&lt;P&gt;No.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the replicates are correlated, but the correlation is accounted for by the other terms in the model. I would not include explicitly replicate in model. It is implicitly included as the residual variance. The assumption of the usual linear regression model is that the residual variance is independent of the response level. Be sure to carefully perform residual analysis to verify this and other assumptions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, the structure you defined, including the nesting, is correct, but it is unnecessary to include the lowest level of the structure in the terms of the model.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 12:14:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Variable-confounds-with-residual/m-p/367047#M61700</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-11T12:14:54Z</dc:date>
    </item>
  </channel>
</rss>

