<?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: Help with estimate statement in proc glimmix resulting in non-est ! in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705052#M34162</link>
    <description>&lt;P&gt;Typically, non-est for interactions happens because the interaction cannot be estimated. This is almost always due to cells in the design where there are zero observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in this simple data set below, you cannot estimate the X1*X2 interaction because there is an empty cell where x1=0 and x2=0&lt;/P&gt;
&lt;PRE&gt;   x1    x2   y
    0     1   5
    1     0   8
    1     1   4&lt;/PRE&gt;
&lt;P&gt;Also, there is almost never a need to compare Time 1 versus Time 0 via an ESTIMATE statement. The &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_syntax13.htm&amp;amp;locale=en" target="_self"&gt;LSMEANS&lt;/A&gt; statement will do the comparison for you with much less effort on your part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 14:07:38 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-12-10T14:07:38Z</dc:date>
    <item>
      <title>Help with estimate statement in proc glimmix resulting in non-est !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705041#M34161</link>
      <description>&lt;P&gt;I have count outcomes collected longitudinally at baseline and two post baseline time points: Time: 0,1,2 and Treatment group of two levels: A and B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=work.Regg &lt;SPAN&gt;method&lt;/SPAN&gt;=quad;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;class&lt;/SPAN&gt; Study_ID Trt Time;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;model&lt;/SPAN&gt;&amp;nbsp;Y= Trt Time Trt*Time /&lt;SPAN&gt;solution&lt;/SPAN&gt; &lt;SPAN&gt;link&lt;/SPAN&gt;=log &lt;SPAN&gt;s&lt;/SPAN&gt; &lt;SPAN&gt;dist&lt;/SPAN&gt;=nb;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;random&lt;/SPAN&gt; int / &lt;SPAN&gt;subject&lt;/SPAN&gt;=Study_ID;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Negative binomial mixed effects model:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;log(Mui_ofY)=Beta_0+Beta_1Trt_A + Beta_2Time1 +Beta_3Time2+ Beta_4Trt_A*Time1 + Beta_5Trt_A*Time2 + Random_int&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: Refs for Trt is B, and Time is Time 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am interested in estimates/contrast for reduction in mean of Y at time 1 relative to baseline for only Treatment A:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which is Beta_2 + Beta_4 and used the estimate statement below but does not work for me.&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;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;estimate&lt;/SPAN&gt;&amp;nbsp;"Trt A &amp;nbsp;Time 1 vs Time 0"&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;intercept &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Trt&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;0&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Time&amp;nbsp;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; 1 0&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Trt&lt;/SPAN&gt;*Time&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This results in non-est, can someone help please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 13:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705041#M34161</guid>
      <dc:creator>sbampah</dc:creator>
      <dc:date>2020-12-10T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with estimate statement in proc glimmix resulting in non-est !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705052#M34162</link>
      <description>&lt;P&gt;Typically, non-est for interactions happens because the interaction cannot be estimated. This is almost always due to cells in the design where there are zero observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in this simple data set below, you cannot estimate the X1*X2 interaction because there is an empty cell where x1=0 and x2=0&lt;/P&gt;
&lt;PRE&gt;   x1    x2   y
    0     1   5
    1     0   8
    1     1   4&lt;/PRE&gt;
&lt;P&gt;Also, there is almost never a need to compare Time 1 versus Time 0 via an ESTIMATE statement. The &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glimmix_syntax13.htm&amp;amp;locale=en" target="_self"&gt;LSMEANS&lt;/A&gt; statement will do the comparison for you with much less effort on your part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705052#M34162</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-10T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with estimate statement in proc glimmix resulting in non-est !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705057#M34163</link>
      <description>Thank you for the insight it is very helpful, however, how do we specify this test with lsmeans ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Steve B. Ampah,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705057#M34163</guid>
      <dc:creator>sbampah</dc:creator>
      <dc:date>2020-12-10T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with estimate statement in proc glimmix resulting in non-est !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705062#M34164</link>
      <description>&lt;P&gt;There are examples at the link I gave.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans time/lines;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705062#M34164</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-10T14:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with estimate statement in proc glimmix resulting in non-est !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705072#M34165</link>
      <description>Thanks very much, while it worked I had to add a little more code to get what I wanted.&lt;BR /&gt;lsmeans Time*Trt/ slice=Trt lines;&lt;BR /&gt;The above code gives me what I want.&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 10 Dec 2020 14:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-estimate-statement-in-proc-glimmix-resulting-in-non/m-p/705072#M34165</guid>
      <dc:creator>sbampah</dc:creator>
      <dc:date>2020-12-10T14:33:42Z</dc:date>
    </item>
  </channel>
</rss>

