<?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 no LSMEANS effects in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/544962#M7964</link>
    <description>&lt;P&gt;What does the SAS warning "Tests for SIMPLE effect Harvest are not performed because no LSMEANS effects other than itself contain it" mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run statistics are different harvesting yield from my study but keep getting this message following my lsmeans&amp;nbsp;code.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc sort&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;data&lt;/FONT&gt;=WORK.SSG2016harvests;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by&lt;/FONT&gt; block legume trt harvest;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc mixed&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class&lt;/FONT&gt; legume trt harvest;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;model&lt;/FONT&gt; sorgyd = harvest;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random&lt;/FONT&gt; block;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;lsmeans&lt;/FONT&gt; harvest / &lt;FONT color="#0000FF"&gt;slice&lt;/FONT&gt;=harvest &lt;FONT color="#0000FF"&gt;diff&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 1 vs cut 2'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;1 -1 0 0&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 1 vs cut 3'&lt;/FONT&gt; harvest &lt;FONT color="#339966"&gt;&lt;STRONG&gt;1 0 -1 0&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 1 vs cut 4'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;1 0 0 -1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 2 vs cut 3'&lt;/FONT&gt; harvest&lt;STRONG&gt;&lt;FONT color="#339966"&gt; 0 1 -1 0&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 2 vs cut 4'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;0 1 0 -1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 3 vs cut 4'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;0 0 1 -1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 17:53:16 GMT</pubDate>
    <dc:creator>Martina4</dc:creator>
    <dc:date>2019-03-21T17:53:16Z</dc:date>
    <item>
      <title>no LSMEANS effects</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/544962#M7964</link>
      <description>&lt;P&gt;What does the SAS warning "Tests for SIMPLE effect Harvest are not performed because no LSMEANS effects other than itself contain it" mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run statistics are different harvesting yield from my study but keep getting this message following my lsmeans&amp;nbsp;code.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc sort&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;data&lt;/FONT&gt;=WORK.SSG2016harvests;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by&lt;/FONT&gt; block legume trt harvest;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc mixed&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class&lt;/FONT&gt; legume trt harvest;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;model&lt;/FONT&gt; sorgyd = harvest;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random&lt;/FONT&gt; block;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;lsmeans&lt;/FONT&gt; harvest / &lt;FONT color="#0000FF"&gt;slice&lt;/FONT&gt;=harvest &lt;FONT color="#0000FF"&gt;diff&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 1 vs cut 2'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;1 -1 0 0&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 1 vs cut 3'&lt;/FONT&gt; harvest &lt;FONT color="#339966"&gt;&lt;STRONG&gt;1 0 -1 0&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 1 vs cut 4'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;1 0 0 -1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 2 vs cut 3'&lt;/FONT&gt; harvest&lt;STRONG&gt;&lt;FONT color="#339966"&gt; 0 1 -1 0&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 2 vs cut 4'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;0 1 0 -1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;contrast&lt;/FONT&gt; &lt;FONT color="#993366"&gt;'cut 3 vs cut 4'&lt;/FONT&gt; harvest &lt;STRONG&gt;&lt;FONT color="#339966"&gt;0 0 1 -1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 17:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/544962#M7964</guid>
      <dc:creator>Martina4</dc:creator>
      <dc:date>2019-03-21T17:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: no LSMEANS effects</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/544965#M7965</link>
      <description>&lt;P&gt;I don't think that you can use HARVEST in two places in the LSMEANS statement.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 17:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/544965#M7965</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-21T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: no LSMEANS effects</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/545091#M7978</link>
      <description>&lt;P&gt;From proc mixed documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SLICE= &lt;SPAN class=" AAargument"&gt;fixed-effect&lt;/SPAN&gt; | &lt;SPAN class=" AAlparen"&gt;(&lt;/SPAN&gt;&lt;SPAN class=" AAargument"&gt;fixed-effects&lt;/SPAN&gt;&lt;SPAN class=" AArparen"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;specifies effects by which to partition interaction LSMEANS effects. &lt;A name="statug.mixed.a0000000359" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A name="statug.mixed.a0000000360" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A name="statug.mixed.a0000000361" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A name="statug.mixed.a0000000362" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A name="statug.mixed.a000000036201" class="indexterm" target="_blank"&gt;&lt;/A&gt; This can produce what are known as tests of simple effects (Winer &lt;A href="http://127.0.0.1:51774/help/statug.hlp/statug_mixed_references.htm#statug_mixedwine_b71" target="_blank"&gt;1971&lt;/A&gt;). For example, suppose that &lt;CODE class="AAvarname"&gt;A&lt;/CODE&gt;*&lt;CODE class="AAvarname"&gt;B&lt;/CODE&gt; is significant, and you want to test the effect of &lt;CODE class="AAvarname"&gt;A&lt;/CODE&gt; for each level of &lt;CODE class="AAvarname"&gt;B&lt;/CODE&gt;. The appropriate LSMEANS statement is as follows:&lt;/P&gt;
&lt;P&gt;&lt;A name="statug.mixed.a0000000363" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A name="statug.mixed.a0000000364" class="indexterm" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;PRE class="xis-codeBlock"&gt;lsmeans A*B / slice=B;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since HARVEST has no interaction term in the first part of the LSMEANS, (and no other variables in the model statement to interact with) the slice option has nothing to partition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe this syntax should use the slice option but whether the model is what you need or want is another story:&lt;/P&gt;
&lt;PRE&gt;proc mixed;
class legume trt harvest;
model sorgyd = harvest legume trt;
random block;
lsmeans harvest*trt / slice=harvest diff;
contrast 'cut 1 vs cut 2' harvest 1 -1 0 0;
contrast 'cut 1 vs cut 3' harvest 1 0 -1 0;
contrast 'cut 1 vs cut 4' harvest 1 0 0 -1;
contrast 'cut 2 vs cut 3' harvest 0 1 -1 0;
contrast 'cut 2 vs cut 4' harvest 0 1 0 -1;
contrast 'cut 3 vs cut 4' harvest 0 0 1 -1;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2019 22:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-LSMEANS-effects/m-p/545091#M7978</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-21T22:55:43Z</dc:date>
    </item>
  </channel>
</rss>

