<?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 Repeated measures model with categorical factor measured on repeated measure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Repeated-measures-model-with-categorical-factor-measured-on/m-p/625901#M30118</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to code a model that is a little different than others I have done and am not sure I have the code right.&amp;nbsp; My design consists of several sites with each of these sites measured 2 years.&amp;nbsp; Each year, the sites were measured several dates.&amp;nbsp; At each survey what was recorded was the date, the presence/absence of factor a, and the response variable.&amp;nbsp; The presence/absence of factor a can vary with date for each site and year.&amp;nbsp; Dates also vary with site and year.&amp;nbsp; So I have 2 repeated measures: year and date - year would be categorical but would like date to be continuous.&amp;nbsp; I then I have a categorical (or binary) factor measured each date (this is the part I am not sure how to code).&amp;nbsp; The model I am running is given below but I am not sure this is correct.&amp;nbsp; I am using compound symmetry while trying to get the rest of the code correct, but can change that later.&amp;nbsp; So ignoring that part, do I have the model correct or am I missing some other covariance terms. &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PROC MIXED;&lt;BR /&gt;CLASS YEAR SITE FACTORA;&lt;BR /&gt;MODEL S=YEAR|FACTORA|DATE;&lt;BR /&gt;RANDOM SITE;&lt;BR /&gt;REPEATED / SUBJECT=SITE*YEAR TYPE=CS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, would it be valid to treat year as a random factor and if yes, how would I code that model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and any help you can give me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 17:10:14 GMT</pubDate>
    <dc:creator>buhl2752</dc:creator>
    <dc:date>2020-02-19T17:10:14Z</dc:date>
    <item>
      <title>Repeated measures model with categorical factor measured on repeated measure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Repeated-measures-model-with-categorical-factor-measured-on/m-p/625901#M30118</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to code a model that is a little different than others I have done and am not sure I have the code right.&amp;nbsp; My design consists of several sites with each of these sites measured 2 years.&amp;nbsp; Each year, the sites were measured several dates.&amp;nbsp; At each survey what was recorded was the date, the presence/absence of factor a, and the response variable.&amp;nbsp; The presence/absence of factor a can vary with date for each site and year.&amp;nbsp; Dates also vary with site and year.&amp;nbsp; So I have 2 repeated measures: year and date - year would be categorical but would like date to be continuous.&amp;nbsp; I then I have a categorical (or binary) factor measured each date (this is the part I am not sure how to code).&amp;nbsp; The model I am running is given below but I am not sure this is correct.&amp;nbsp; I am using compound symmetry while trying to get the rest of the code correct, but can change that later.&amp;nbsp; So ignoring that part, do I have the model correct or am I missing some other covariance terms. &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PROC MIXED;&lt;BR /&gt;CLASS YEAR SITE FACTORA;&lt;BR /&gt;MODEL S=YEAR|FACTORA|DATE;&lt;BR /&gt;RANDOM SITE;&lt;BR /&gt;REPEATED / SUBJECT=SITE*YEAR TYPE=CS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, would it be valid to treat year as a random factor and if yes, how would I code that model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and any help you can give me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Repeated-measures-model-with-categorical-factor-measured-on/m-p/625901#M30118</guid>
      <dc:creator>buhl2752</dc:creator>
      <dc:date>2020-02-19T17:10:14Z</dc:date>
    </item>
  </channel>
</rss>

