<?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 Limiting a data set and comparing subsamples in MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Limiting-a-data-set-and-comparing-subsamples-in-MIXED/m-p/136586#M7088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Did I write this coding correctly?&amp;nbsp; I'm running a CRD with subsamples.&amp;nbsp; Fixed variables: Treatment and Rows(Treatment). Random variables Phenology.&lt;/P&gt;&lt;P&gt;2) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I collected subsamples over three years but the years should not be pooled.&amp;nbsp; How can I ask SAS to analyze only one year without altering my data set by hand?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) How can I ask SAS to compare each row within each treatment and phenology but not between them?&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For example, I would like to compare 'Phenology Lvl 1, Trt Lvl 1, Row Lvl 1' vs. 'Phenology 1, Trt 1, Row 2' but I do not want to view 'Phenology 1, Trt 1, Row 1' vs. 'Phenology 2, Trt 2, Row 1.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;MIXED&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = Abundance3Year &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;METHOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = TYPE3; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; TREATMENT RowOrder PhenologyRef;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; PairsRecovdRate = &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;RowOrder(Treatment)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;RANDOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; PhenologyRef PhenologyRef*Treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;LSMEANS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; RowOrder(Treatment) /&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; PDIFF; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;QUIT&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2014 21:53:11 GMT</pubDate>
    <dc:creator>SH1125</dc:creator>
    <dc:date>2014-04-28T21:53:11Z</dc:date>
    <item>
      <title>Limiting a data set and comparing subsamples in MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Limiting-a-data-set-and-comparing-subsamples-in-MIXED/m-p/136586#M7088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Did I write this coding correctly?&amp;nbsp; I'm running a CRD with subsamples.&amp;nbsp; Fixed variables: Treatment and Rows(Treatment). Random variables Phenology.&lt;/P&gt;&lt;P&gt;2) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I collected subsamples over three years but the years should not be pooled.&amp;nbsp; How can I ask SAS to analyze only one year without altering my data set by hand?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) How can I ask SAS to compare each row within each treatment and phenology but not between them?&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For example, I would like to compare 'Phenology Lvl 1, Trt Lvl 1, Row Lvl 1' vs. 'Phenology 1, Trt 1, Row 2' but I do not want to view 'Phenology 1, Trt 1, Row 1' vs. 'Phenology 2, Trt 2, Row 1.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;MIXED&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = Abundance3Year &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;METHOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = TYPE3; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; TREATMENT RowOrder PhenologyRef;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; PairsRecovdRate = &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;RowOrder(Treatment)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;RANDOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; PhenologyRef PhenologyRef*Treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;LSMEANS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; RowOrder(Treatment) /&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; PDIFF; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;QUIT&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Limiting-a-data-set-and-comparing-subsamples-in-MIXED/m-p/136586#M7088</guid>
      <dc:creator>SH1125</dc:creator>
      <dc:date>2014-04-28T21:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting a data set and comparing subsamples in MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Limiting-a-data-set-and-comparing-subsamples-in-MIXED/m-p/136587#M7089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp; Ought to work.&amp;nbsp; I'm more used to the usual notation of A*B, rather than A(B) for the model and lsmeans statements, but they should work.&amp;nbsp; I am curious why you would use type3 analysis rather than the default REML with this design, though.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; A BY statement would give separate analyses by year.&amp;nbsp; Be sure the data are sorted appropriately.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; But phenology is a random effect, so if you want to do this, you will have to construct ESTIMATE statements to compare the BLUPs at each phenology.&amp;nbsp; This could become tedious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Limiting-a-data-set-and-comparing-subsamples-in-MIXED/m-p/136587#M7089</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-04-29T12:57:15Z</dc:date>
    </item>
  </channel>
</rss>

