<?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 SITE EFFECT IN A REPEATED MEASURE ANALYSIS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823252#M81932</link>
    <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;BR /&gt;I did some analysis using a mixed model (code below). Now I want to look for the effect of site i.e. if there's difference between sites where the data were collected because a site has about 70% subjects than the other two sites. I want to know if this would affect my analysis and where do I put the &lt;STRONG&gt;site variable&lt;/STRONG&gt; in my model.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Do you know how I could test for the effect of the site in the model?&lt;/STRONG&gt;&lt;BR /&gt;Thanks for helping.&lt;BR /&gt;trt is the the treatment grp&lt;BR /&gt;sub is the subject&lt;BR /&gt;time is the different time point&lt;BR /&gt;and site is the different site that the subject data is collected.&lt;/P&gt;&lt;PRE&gt;proc mixed data=data;
class trt sub time (ref=first);
model Y = time trt time*trt/ s chisq;
repeated / type=un subject=sub r;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thank again.&lt;BR /&gt;~Sammy&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 05:18:15 GMT</pubDate>
    <dc:creator>twix17</dc:creator>
    <dc:date>2022-07-14T05:18:15Z</dc:date>
    <item>
      <title>SITE EFFECT IN A REPEATED MEASURE ANALYSIS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823252#M81932</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;BR /&gt;I did some analysis using a mixed model (code below). Now I want to look for the effect of site i.e. if there's difference between sites where the data were collected because a site has about 70% subjects than the other two sites. I want to know if this would affect my analysis and where do I put the &lt;STRONG&gt;site variable&lt;/STRONG&gt; in my model.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Do you know how I could test for the effect of the site in the model?&lt;/STRONG&gt;&lt;BR /&gt;Thanks for helping.&lt;BR /&gt;trt is the the treatment grp&lt;BR /&gt;sub is the subject&lt;BR /&gt;time is the different time point&lt;BR /&gt;and site is the different site that the subject data is collected.&lt;/P&gt;&lt;PRE&gt;proc mixed data=data;
class trt sub time (ref=first);
model Y = time trt time*trt/ s chisq;
repeated / type=un subject=sub r;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thank again.&lt;BR /&gt;~Sammy&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 05:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823252#M81932</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2022-07-14T05:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: SITE EFFECT IN A REPEATED MEASURE ANALYSIS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823329#M81935</link>
      <description>&lt;P&gt;I assume there are two sites you want to handle.&amp;nbsp; Try the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=data;
class trt sub time (ref=first) site;
model Y = time|trt|site/ s chisq;
repeated time / type=un subject=sub r;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The F tests for time*site, trt*site, and time*trt*site are key to your question.&amp;nbsp; If any of these are significant, you need to think about comparing factors within site (see SLICE in the documentation).&amp;nbsp; If none are significant, then you can check the test for 'site' to look for systematic differences between sites, regardless of treatment or time - the equivalent of a change in intercept in a regression model.&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;</description>
      <pubDate>Thu, 14 Jul 2022 14:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823329#M81935</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-07-14T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: SITE EFFECT IN A REPEATED MEASURE ANALYSIS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823332#M81936</link>
      <description>Thank you sir for the response and direction.</description>
      <pubDate>Thu, 14 Jul 2022 14:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SITE-EFFECT-IN-A-REPEATED-MEASURE-ANALYSIS/m-p/823332#M81936</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2022-07-14T14:59:04Z</dc:date>
    </item>
  </channel>
</rss>

