<?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 proc mixed covariance parameterization in space and time in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-covariance-parameterization-in-space-and-time/m-p/414289#M21735</link>
    <description>&lt;P&gt;I am trying to analyse some data from variety trials on forage grasses. The data consist of a range of multi-harvest pasture field experiments. Typically a single experiment would consist of 10-15 cultivars or candidate cultivars in randomized complete block design. &amp;nbsp;After the year of establishment the experiment is typically harvested the 3 following years.&lt;/P&gt;&lt;P&gt;One, most likely, naïve analysis using Proc Mixed, would be as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data t;&lt;/P&gt;&lt;P&gt;infile ‘TESB.txt’; input field establ engar plot rep cult yield row col harvyr;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data=t method = reml;&lt;/P&gt;&lt;P&gt;class rep cult harvyr;&lt;/P&gt;&lt;P&gt;model yield = rep/ ddfm=kr;&lt;/P&gt;&lt;P&gt;random cult harvyr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variables to consider here are:&lt;/P&gt;&lt;P&gt;rep – replication&lt;/P&gt;&lt;P&gt;cult – cultivar&lt;/P&gt;&lt;P&gt;yield – yield&lt;/P&gt;&lt;P&gt;row – row number&lt;/P&gt;&lt;P&gt;col – column number&lt;/P&gt;&lt;P&gt;harvyr – harvest year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I apparently do not account for the correlations in space and time here, and here is where I need help:&lt;/P&gt;&lt;P&gt;First, how do I account for the spatial covariances among the field plots, e.g., the fact that neighbouring plots are more likely to be positively correlated? I realize that the ‘repeated’ statement is the one to use, but I cannot figure out how. BTW: each plot position is given my the row and col variables.&lt;/P&gt;&lt;P&gt;Second, each plot is harvested in three subsequent years, so I would assume that this would cause positive correlations as well and should be included in the model.&lt;/P&gt;&lt;P&gt;Ideally I would like to see both these covariances included simultaneously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate feedback here.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 08:49:09 GMT</pubDate>
    <dc:creator>JahnDavik</dc:creator>
    <dc:date>2017-11-17T08:49:09Z</dc:date>
    <item>
      <title>proc mixed covariance parameterization in space and time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-covariance-parameterization-in-space-and-time/m-p/414289#M21735</link>
      <description>&lt;P&gt;I am trying to analyse some data from variety trials on forage grasses. The data consist of a range of multi-harvest pasture field experiments. Typically a single experiment would consist of 10-15 cultivars or candidate cultivars in randomized complete block design. &amp;nbsp;After the year of establishment the experiment is typically harvested the 3 following years.&lt;/P&gt;&lt;P&gt;One, most likely, naïve analysis using Proc Mixed, would be as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data t;&lt;/P&gt;&lt;P&gt;infile ‘TESB.txt’; input field establ engar plot rep cult yield row col harvyr;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data=t method = reml;&lt;/P&gt;&lt;P&gt;class rep cult harvyr;&lt;/P&gt;&lt;P&gt;model yield = rep/ ddfm=kr;&lt;/P&gt;&lt;P&gt;random cult harvyr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variables to consider here are:&lt;/P&gt;&lt;P&gt;rep – replication&lt;/P&gt;&lt;P&gt;cult – cultivar&lt;/P&gt;&lt;P&gt;yield – yield&lt;/P&gt;&lt;P&gt;row – row number&lt;/P&gt;&lt;P&gt;col – column number&lt;/P&gt;&lt;P&gt;harvyr – harvest year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I apparently do not account for the correlations in space and time here, and here is where I need help:&lt;/P&gt;&lt;P&gt;First, how do I account for the spatial covariances among the field plots, e.g., the fact that neighbouring plots are more likely to be positively correlated? I realize that the ‘repeated’ statement is the one to use, but I cannot figure out how. BTW: each plot position is given my the row and col variables.&lt;/P&gt;&lt;P&gt;Second, each plot is harvested in three subsequent years, so I would assume that this would cause positive correlations as well and should be included in the model.&lt;/P&gt;&lt;P&gt;Ideally I would like to see both these covariances included simultaneously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate feedback here.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 08:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-covariance-parameterization-in-space-and-time/m-p/414289#M21735</guid>
      <dc:creator>JahnDavik</dc:creator>
      <dc:date>2017-11-17T08:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed covariance parameterization in space and time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-covariance-parameterization-in-space-and-time/m-p/424668#M22331</link>
      <description>&lt;P&gt;If you have plots that are spatially correlated and observations on plants within a plot that are temporally correlated, then you can try something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;random plot / type=ar(1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;repeated time / subject=plant(plot) type=ar(1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you have a lot of plots, the estimates of the components of the AR(1) structure of the spatial component of your design are going to be rough at best.&amp;nbsp; If you have measurements of the plot locations in two dimensions, then you can try TYPE=SP(POW)(x y) on that RANDOM statement to incorporate the two dimensional distance between the plots.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-covariance-parameterization-in-space-and-time/m-p/424668#M22331</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2018-01-03T18:55:24Z</dc:date>
    </item>
  </channel>
</rss>

