<?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: basic proc mixed coding question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/basic-proc-mixed-coding-question/m-p/60054#M17011</link>
    <description>David,&lt;BR /&gt;
&lt;BR /&gt;
That approach looks pretty good, but there might be an even better approach.  Is there any reason to believe that observations within a station and site are correlated from year to year?  If so, you may want to expand the model to something like:&lt;BR /&gt;
&lt;BR /&gt;
class = site reach year station&lt;BR /&gt;
model environmental data = site|reach|year&lt;BR /&gt;
random site/subject=station&lt;BR /&gt;
repeated year/subject=station*site type=un&lt;BR /&gt;
&lt;BR /&gt;
Good luck.&lt;BR /&gt;
&lt;BR /&gt;
Steve Denham</description>
    <pubDate>Fri, 07 Nov 2008 13:36:54 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2008-11-07T13:36:54Z</dc:date>
    <item>
      <title>basic proc mixed coding question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/basic-proc-mixed-coding-question/m-p/60053#M17010</link>
      <description>Hello all,&lt;BR /&gt;
    I'm trying to code a 3-way ANOVA model with a random effect using proc mixed, but I am unsure that I am specifying my model correctly.  We have a series of environmental data collected from 3 types of sites (ref, deg, unk), each site is stratified into 2 reaches (near and far), and the data were collected over the 3 years.  Multiple, distinct stations that represent one of the three types of sites throughout the estuary were selected randomly, and at each station 9 random replicate measures of the environmental data were collected.  We are interested in detecting differences in the environmental data between ref, deg, and unk sites, as well as reach, year, and interactions of the 3.  I want to make use of the 9 replicates at each station so I'm using the following model in proc mixed:&lt;BR /&gt;
&lt;BR /&gt;
class = site reach year station&lt;BR /&gt;
environmental data = site|reach|year&lt;BR /&gt;
random site/subject=station&lt;BR /&gt;
&lt;BR /&gt;
Is this the appropriate approach to take?  &lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;BR /&gt;
-david&lt;BR /&gt;
&lt;BR /&gt;
This is what happens when you don't have a proper statistician at a given institute.....</description>
      <pubDate>Thu, 06 Nov 2008 21:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/basic-proc-mixed-coding-question/m-p/60053#M17010</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-06T21:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: basic proc mixed coding question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/basic-proc-mixed-coding-question/m-p/60054#M17011</link>
      <description>David,&lt;BR /&gt;
&lt;BR /&gt;
That approach looks pretty good, but there might be an even better approach.  Is there any reason to believe that observations within a station and site are correlated from year to year?  If so, you may want to expand the model to something like:&lt;BR /&gt;
&lt;BR /&gt;
class = site reach year station&lt;BR /&gt;
model environmental data = site|reach|year&lt;BR /&gt;
random site/subject=station&lt;BR /&gt;
repeated year/subject=station*site type=un&lt;BR /&gt;
&lt;BR /&gt;
Good luck.&lt;BR /&gt;
&lt;BR /&gt;
Steve Denham</description>
      <pubDate>Fri, 07 Nov 2008 13:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/basic-proc-mixed-coding-question/m-p/60054#M17011</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2008-11-07T13:36:54Z</dc:date>
    </item>
  </channel>
</rss>

