<?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: Repeated randomized complete block design at multiple sites in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Repeated-randomized-complete-block-design-at-multiple-sites/m-p/929990#M46350</link>
    <description>&lt;P&gt;these look good to me. My only suggestion would be on the multiple years without a repeated statement. Consider rewriting the RANDOM statement with block(site) as a subject. You would then have a random intercept and random slope model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed ;
class Year Site Block Treatment;
model biomass = Year|Site|Treatment;
random intercept Treatment/subject=Block(Site) type=un;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I added type=un to handle any potential correlation between the intercept and Treatment.&amp;nbsp; This one does bother me a bit. I don't have an issue with a fixed effect being modeled as an R-side effect (repeated measures approach), but I think you will run into convergence and/or G matrix issues with Treatment as both random and fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 19:16:27 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2024-05-28T19:16:27Z</dc:date>
    <item>
      <title>Repeated randomized complete block design at multiple sites</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Repeated-randomized-complete-block-design-at-multiple-sites/m-p/929088#M46290</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm analyzing data from a randomized complete block design at multiple sites across multiple years.&amp;nbsp; There are 4 blocks (1-4) at each site, so block is nested within each site (block(site)).&amp;nbsp; I am trying to run this as a simple mixed model and also as a repeated measures.&amp;nbsp; I would just like to know if my coding is correct for both.&amp;nbsp; Any insight would be appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A single year analysis to start :&lt;/P&gt;&lt;P&gt;proc mixed ;&lt;BR /&gt;class Site Block Treatment;&lt;BR /&gt;model biomass = Site|Treatment;&lt;BR /&gt;random Block(Site);&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Multiple years without repeated statement.&lt;/P&gt;&lt;P&gt;Random terms:&amp;nbsp; block nested within site and then block*site*treatment to account for multiple observations across years.&lt;/P&gt;&lt;P&gt;proc mixed ;&lt;BR /&gt;class Year Site Block Treatment;&lt;BR /&gt;model biomass = Year|Site|Treatment;&lt;BR /&gt;random Block(Site)&amp;nbsp; Block*Site*Treatment;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Multiple years with repeated measures, but I'm unsure how to show that block is nested within each site (maybe the interaction accounts for this).&lt;/P&gt;&lt;P&gt;proc mixed ;&lt;BR /&gt;class Year Site Block Treatment;&lt;BR /&gt;model biomass = Year|Site|Treatment/ddfm=kr;&lt;BR /&gt;repeated Year / SUB= Site*Block*Treatment type=un ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 20:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Repeated-randomized-complete-block-design-at-multiple-sites/m-p/929088#M46290</guid>
      <dc:creator>tompatmck</dc:creator>
      <dc:date>2024-05-20T20:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated randomized complete block design at multiple sites</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Repeated-randomized-complete-block-design-at-multiple-sites/m-p/929990#M46350</link>
      <description>&lt;P&gt;these look good to me. My only suggestion would be on the multiple years without a repeated statement. Consider rewriting the RANDOM statement with block(site) as a subject. You would then have a random intercept and random slope model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed ;
class Year Site Block Treatment;
model biomass = Year|Site|Treatment;
random intercept Treatment/subject=Block(Site) type=un;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I added type=un to handle any potential correlation between the intercept and Treatment.&amp;nbsp; This one does bother me a bit. I don't have an issue with a fixed effect being modeled as an R-side effect (repeated measures approach), but I think you will run into convergence and/or G matrix issues with Treatment as both random and fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 19:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Repeated-randomized-complete-block-design-at-multiple-sites/m-p/929990#M46350</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-05-28T19:16:27Z</dc:date>
    </item>
  </channel>
</rss>

