<?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: Using CONTRAST or ESTIMATE to test for simple effects in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474136#M24667</link>
    <description>&lt;P&gt;Yes, if the LINES statement works on interaction effects, then go ahead and use it. (Somewhere in the back of my mind, I thought LINES doesn't work on interactions, but this isn't stated in the documentation, so if it works, that's the way to go)&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 15:48:32 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-06-28T15:48:32Z</dc:date>
    <item>
      <title>Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474055#M24656</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC GLM to test some models for some result from out experiments and we have some pre-planned contrasts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two classification variables CLASSVAR_01 and CLASSVAR_02. The former has 2 levels and the latter has 4 levels. We are running the analysis for about 20 dependent variables. Each dependent variable by default are supposed to have 4 replicates, however there are quite a number of missing values within the observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that using the SLICE= option on the LSMEANS can be used to output the test for a "simple effect," as can CONTRAST and ESTIMATE options with the appropriate coefficients on the variables of interest to us. Of course, both of options are available in PROC GLM and PROC MIXED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which of ESTIMATE and CONTRAST would be more appropriate to handle the simple effect comparison between the classification variables despite the presence of missing values in some of the recorded observations for our dependent variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dami.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474055#M24656</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-06-28T13:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474065#M24658</link>
      <description>&lt;P&gt;I would use LSMEANS to compare levels of the same variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not use CONTRAST or ESTIMATE because they require more work on your part, although I would expect they would produce the same results.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;CONTRAST and ESTIMATE are useful only when you have some linear combination of levels you want to test or estimate, other than combinations that involve only a single -1 and a single +1 and possibly one or more zeros in the&amp;nbsp;equation of the linear combination; for example if you want a contrast of -1 2 -1, then you have to use the CONTRAST statement; if you want a contrast of -1 0 1 (which is the simple effect comparison you mentioned) don't do this via CONTRAST statements.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474065#M24658</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-28T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474093#M24660</link>
      <description>&lt;P&gt;Thank you very much for your reply Mr. Paige.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i ask why you suggested to not use contrast for the kind of simple effect which we are interested in?&lt;/P&gt;&lt;P&gt;If I may elaborate...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The levels of CLASSVAR_01 are &lt;EM&gt;AA&lt;/EM&gt; and &lt;EM&gt;BB...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The levels of CLASSVAR_02 are &lt;STRONG&gt;0000&lt;/STRONG&gt;, &lt;STRONG&gt;1111&lt;/STRONG&gt;, &lt;STRONG&gt;2222&lt;/STRONG&gt; and &lt;STRONG&gt;3333&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to test for DEPENDENT_VAR_Q&amp;nbsp; with respect to the class variables in this form;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AA&lt;/EM&gt;_&lt;STRONG&gt;0000 &lt;/STRONG&gt;vs &lt;EM&gt;BB&lt;/EM&gt;_&lt;STRONG&gt;0000;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I consulted a couple of academic articles to guide on how to develop constrast coefficients and&lt;/P&gt;&lt;P&gt;I have constructed a contrast coefficient for this linear combination and my code looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLM DATA = EXP_02 ORDER = DATA;&lt;/P&gt;&lt;P&gt;CLASS classvar_01 classvar_02;&lt;/P&gt;&lt;P&gt;MODEL dependent_var_q =&amp;nbsp;&lt;SPAN&gt;classvar_01 classvar_02 classvar_01*classvar_02;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;CONTRAST&lt;/STRONG&gt;&amp;nbsp; 'L1-of-class1 at L2 of class2 VS L2-of class1 at L2 of class2' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; classvar_01&lt;/STRONG&gt; 1 -1 &lt;STRONG&gt;classvar_01*classvar_02&lt;/STRONG&gt; 0 1 0 0 0 -1 0 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;do you think i would run into a problem with this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you once again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474093#M24660</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-06-28T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474097#M24663</link>
      <description>&lt;P&gt;LSMEANS for the interaction of CLASSVAR_01 and CLASSVAR_02 gives you this without constructing a CONTRAST or ESTIMATE statement, I don't see why you want to do the additional work to create CONTRAST or ESTIMATE statements.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474097#M24663</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-28T14:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474108#M24664</link>
      <description>&lt;P&gt;Yes, I do understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the comparison-wise error rate which arises with multiplicity of testing is avoided (at least that is what I am inclined to think).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And these two groups are basically of high importance to the study, hence the reason behind the pre-planned comparison between them. Results that we have collated from other experiments have have exhibited a trend for these groups and we are trying to define this trend.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474108#M24664</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-06-28T15:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474111#M24665</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212624"&gt;@dammie_101&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I do understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the comparison-wise error rate which arises with multiplicity of testing is avoided (at least that is what I am inclined to think).&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The PDIFF option of LSMEANS allows you to specify if you want the T test option (not controlling for multiplicity of testing) or the TUKEY option (which does control for multiplicity of testing). Seems like you want the T test option.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474111#M24665</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-28T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474128#M24666</link>
      <description>&lt;P&gt;Separate from the aforementioned test, we actually intend to subject all other class combinations to a post-hoc test. Would it be appropriate to use the following code...&lt;/P&gt;&lt;P&gt;..............&lt;/P&gt;&lt;P&gt;LSMEANS classvar_01*classvar_02 /LINES ADJUST = TUKEY;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....or would you be kind enough to help with the code which matches what you said in your last reply?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474128#M24666</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-06-28T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONTRAST or ESTIMATE to test for simple effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474136#M24667</link>
      <description>&lt;P&gt;Yes, if the LINES statement works on interaction effects, then go ahead and use it. (Somewhere in the back of my mind, I thought LINES doesn't work on interactions, but this isn't stated in the documentation, so if it works, that's the way to go)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-CONTRAST-or-ESTIMATE-to-test-for-simple-effects/m-p/474136#M24667</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-28T15:48:32Z</dc:date>
    </item>
  </channel>
</rss>

