<?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: Estimate statement with interaction in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199852#M10709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to estimate the effect of trgrp in one BMI group then do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc glm data=inputdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class trgrp ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model outcome = trgrp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where bmigroup = 0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Aug 2015 22:08:05 GMT</pubDate>
    <dc:creator>plf515</dc:creator>
    <dc:date>2015-08-15T22:08:05Z</dc:date>
    <item>
      <title>Estimate statement with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199851#M10708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with the following problem:&lt;/P&gt;&lt;P&gt;I can't get estimates from the estimate statement and always get the message that the estimate is not estimable&lt;/P&gt;&lt;P&gt; A versus B for BMI &amp;lt;= 22&amp;nbsp; is not estimable."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc glm data=inputdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class trgrp&amp;nbsp; BMIgroup ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model outcome = trgrp&amp;nbsp;&amp;nbsp; BMIgroup BMIgroup*trgrp /solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate "A versus B for BMI &amp;lt;= 22 " BMIgroup 1 0 trgrp 1 -1 BMIgroup*trgrp 1&amp;nbsp; 0 -1&amp;nbsp; 0&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable trgrp and BMIgroup are both binary variables. I want to estimate the treatment effect in the group with the low BMI.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 20:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199851#M10708</guid>
      <dc:creator>kathrin_r</dc:creator>
      <dc:date>2015-08-15T20:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Estimate statement with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199852#M10709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to estimate the effect of trgrp in one BMI group then do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc glm data=inputdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class trgrp ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model outcome = trgrp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where bmigroup = 0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 22:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199852#M10709</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2015-08-15T22:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Estimate statement with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199853#M10710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I also want to add another estimate statement for the group &amp;gt;22.&lt;/P&gt;&lt;P&gt;I think this should be possible with the estimate statement or is it really necessary to run twice proc glm with a where statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 22:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199853#M10710</guid>
      <dc:creator>kathrin_r</dc:creator>
      <dc:date>2015-08-15T22:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Estimate statement with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199854#M10711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are dealing with the question of whether you want a stratified analysis (one for the low BMI group, one for the high BMI group) or a moderated model with an interaction term. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you stratify the analysis, you could use a BY statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data = inputdata;&lt;/P&gt;&lt;P&gt; by bmigroup;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc glm data=inputdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class trgrp ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model outcome = trgrp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by bmigroup;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want a moderated model you could run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc glm data=inputdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class trgrp bmigrp ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model outcome = trgrp bmigrp trgrp*bmigrp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans trgrp bmigrp trgrp*bmigrp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you could have an estimate statement as well - although I find LSMEANS easer to write and to have easier output to read. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 22:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199854#M10711</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2015-08-15T22:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Estimate statement with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199855#M10712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And in this case, the use of the LSMESTIMATE statement is indicated.&amp;nbsp; However, it isn't supported in GLM, so a change to PROC MIXED would be one way to get this done. Another approach would be to use the SLICE option in the LSMEANS statement.&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>Mon, 17 Aug 2015 12:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimate-statement-with-interaction/m-p/199855#M10712</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-17T12:30:14Z</dc:date>
    </item>
  </channel>
</rss>

