<?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: Proc GLM contrast/estimate statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-contrast-estimate-statement/m-p/70259#M3412</link>
    <description>It usually helps to write out the ESTIMATE statement for each condition that you want to use in a contrast and then take the difference between the coefficients that are involved in that contrast.  For instance, for treatment group 1, estimate statements for low and high X would be&lt;BR /&gt;
&lt;BR /&gt;
estimate "Trt=1, low X"&lt;BR /&gt;
 &amp;nbsp; z &amp;nbsp; &amp;nbsp; 1 0 0&lt;BR /&gt;
 &amp;nbsp; x &amp;nbsp; &amp;nbsp; -4.661&lt;BR /&gt;
 &amp;nbsp; z*x &amp;nbsp;-4.661 0 0;&lt;BR /&gt;
&lt;BR /&gt;
estimate "Trt=1, high X"&lt;BR /&gt;
 &amp;nbsp; z &amp;nbsp; &amp;nbsp; 1 0 0&lt;BR /&gt;
 &amp;nbsp; x &amp;nbsp; &amp;nbsp; 4.661&lt;BR /&gt;
 &amp;nbsp; z*x &amp;nbsp;4.661 0 0;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The difference between these two is the effect of interest that you are having trouble constructing.  But as presented above, the effect of interest would be:&lt;BR /&gt;
&lt;BR /&gt;
estimate "Trt=1, high vs low X"&lt;BR /&gt;
 &amp;nbsp; x &amp;nbsp; &amp;nbsp; 9.322&lt;BR /&gt;
 &amp;nbsp; z*x &amp;nbsp;9.322 0 0;&lt;BR /&gt;
&lt;BR /&gt;
Just change the label and the last line to reflect the different treatment conditions.</description>
    <pubDate>Wed, 08 Sep 2010 19:42:25 GMT</pubDate>
    <dc:creator>Dale</dc:creator>
    <dc:date>2010-09-08T19:42:25Z</dc:date>
    <item>
      <title>Proc GLM contrast/estimate statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-contrast-estimate-statement/m-p/70258#M3411</link>
      <description>I have one continuous variable (X), a categorical variable (Z; treatment condition with three levels), and a continuous outcome variable (Z). X is an individual difference variable.&lt;BR /&gt;
&lt;BR /&gt;
I have already figured out how to compare the different treatment conditions for different values of X. For example, for comparing treatment 1 and 2 among individuals scoring low on X (Mean of X at -1 SD = 4.2261), I would write the following:&lt;BR /&gt;
&lt;BR /&gt;
proc glm;&lt;BR /&gt;
class Z;&lt;BR /&gt;
model y = Z X Z*X;&lt;BR /&gt;
ESTIMATE 'Z 1 vs 2 at low X' Z -1 1 0 Z*X -4.2261 4.2261 0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
However, I can't figure out how to test whether individuals that score high versus low on X differ in Y, for each level of Z. (e.g., comparing Y scores for low and high X in treatment condition 1; comparing Y scores for low and high X in treatment condition 2 etc).&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions?</description>
      <pubDate>Mon, 06 Sep 2010 16:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-contrast-estimate-statement/m-p/70258#M3411</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-06T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLM contrast/estimate statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-contrast-estimate-statement/m-p/70259#M3412</link>
      <description>It usually helps to write out the ESTIMATE statement for each condition that you want to use in a contrast and then take the difference between the coefficients that are involved in that contrast.  For instance, for treatment group 1, estimate statements for low and high X would be&lt;BR /&gt;
&lt;BR /&gt;
estimate "Trt=1, low X"&lt;BR /&gt;
 &amp;nbsp; z &amp;nbsp; &amp;nbsp; 1 0 0&lt;BR /&gt;
 &amp;nbsp; x &amp;nbsp; &amp;nbsp; -4.661&lt;BR /&gt;
 &amp;nbsp; z*x &amp;nbsp;-4.661 0 0;&lt;BR /&gt;
&lt;BR /&gt;
estimate "Trt=1, high X"&lt;BR /&gt;
 &amp;nbsp; z &amp;nbsp; &amp;nbsp; 1 0 0&lt;BR /&gt;
 &amp;nbsp; x &amp;nbsp; &amp;nbsp; 4.661&lt;BR /&gt;
 &amp;nbsp; z*x &amp;nbsp;4.661 0 0;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The difference between these two is the effect of interest that you are having trouble constructing.  But as presented above, the effect of interest would be:&lt;BR /&gt;
&lt;BR /&gt;
estimate "Trt=1, high vs low X"&lt;BR /&gt;
 &amp;nbsp; x &amp;nbsp; &amp;nbsp; 9.322&lt;BR /&gt;
 &amp;nbsp; z*x &amp;nbsp;9.322 0 0;&lt;BR /&gt;
&lt;BR /&gt;
Just change the label and the last line to reflect the different treatment conditions.</description>
      <pubDate>Wed, 08 Sep 2010 19:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-GLM-contrast-estimate-statement/m-p/70259#M3412</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2010-09-08T19:42:25Z</dc:date>
    </item>
  </channel>
</rss>

