<?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 &amp;quot;estimate&amp;quot; statement in Proc glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159014#M8282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a note. ADJUST=T is not shorthand for ADJUST=TUKEY. ADJUST=T calls for t-tests with no adjustment. ADJUST=TUKEY is not available for LSMeans differences. The choice of adjustment methods for LSMeans differences in GLIMMIX is quite limited. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Mar 2014 02:53:20 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-03-29T02:53:20Z</dc:date>
    <item>
      <title>help with "estimate" statement in Proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159012#M8280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build a linear mixed effect model assuming both random intercept and random slope. The data is like this: There are 3 groups (1 ,2 ,3) and 15 subjects in group 1, 8 subjects in group 2, 8 subjects in group 3. Each patient has been measured 3 times (time: 0, 1, 2). The outcome is continuous. so I assumed normal distribution and identity link function.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote code like this:&lt;/P&gt;&lt;P&gt;proc glimmix data=xxx;&lt;/P&gt;&lt;P&gt;class group time;&lt;/P&gt;&lt;P&gt;model outcome = group time group*time / dist=normal link=identity;&lt;/P&gt;&lt;P&gt;random intercept time / subject=id type=un;&lt;/P&gt;&lt;P&gt;estimate "group 1 - group 2 at time 0" ....................&lt;/P&gt;&lt;P&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; "group 1 - group 3 at time 0"....................&lt;/P&gt;&lt;P&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; "group 2 - group 3 at time 0".................../ adjust=t;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I ran the model, I found the interaction term "group*time" is significant. So I want to estimate the differences between groups at time 0 and adjust p-values by tukey. But I am not sure how to specify the values of fixed effect and random effect in the "estimate" statement. can anyone help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, if I specify time as linear instead of categorical variable, would it change the way how we specify the values of fixed effect and random effect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 20:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159012#M8280</guid>
      <dc:creator>sky1</dc:creator>
      <dc:date>2014-03-27T20:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: help with "estimate" statement in Proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159013#M8281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will want to approach this slightly differently.&amp;nbsp; Since your data are Gaussian, I would model the repeated nature of the design as an R side effect, rather than a G side.&amp;nbsp; This will make the "random" effect of time more easily handled in lsmeans.&amp;nbsp; I would use the LSMESTIMATE statement in GLIMMIX for the comparisons.&amp;nbsp; Thus, the code would look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=xxx;&lt;/P&gt;&lt;P&gt;class group time id;&lt;/P&gt;&lt;P&gt;model outcome = group time group*time / dist=normal link=identity;&lt;/P&gt;&lt;P&gt;random time /residual subject=id type=un;/*This fits an R side repeated structure*/&lt;/P&gt;&lt;P&gt;lsmestimate&amp;nbsp; group*time "group 1 - group 2 at time 0" 1 0 0&amp;nbsp; -1 0 0&amp;nbsp; 0 0 0,&lt;/P&gt;&lt;P&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; "group 1 - group 3 at time 0" 1 0 0&amp;nbsp; 0 0 0&amp;nbsp; -1 0 0,&lt;/P&gt;&lt;P&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; "group 2 - group 3 at time 0" 0 0 0&amp;nbsp; 1 0 0&amp;nbsp; -1 0 0/ adjust=t elsm;/*The elsm option prints the &lt;STRONG&gt;K &lt;/STRONG&gt;matrix.&amp;nbsp; Check it to make sure the comparisons I have here match your set-up */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, additional lsmestimate entries, or blocks, can be entered, depending on how you want to adjust your p values.&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>Fri, 28 Mar 2014 13:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159013#M8281</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-03-28T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: help with "estimate" statement in Proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159014#M8282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a note. ADJUST=T is not shorthand for ADJUST=TUKEY. ADJUST=T calls for t-tests with no adjustment. ADJUST=TUKEY is not available for LSMeans differences. The choice of adjustment methods for LSMeans differences in GLIMMIX is quite limited. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 02:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159014#M8282</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-29T02:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: help with "estimate" statement in Proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159015#M8283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, adjust=tukey is valid in GLIMMIX. There are many possible adjustments. Check the User's Guide. &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_glimmix_sect006.htm" title="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_glimmix_sect006.htm"&gt;SAS/STAT(R) 9.3 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 16:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159015#M8283</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-03-30T16:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: help with "estimate" statement in Proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159016#M8284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops. adjust=tukey IS available with the lsmeans statement (for pairwise differences). However, it is NOT available for estimate or lsmestimate statements. Sorry for confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 17:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159016#M8284</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-03-30T17:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: help with "estimate" statement in Proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159017#M8285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, the answer (if someone really wants Tukey's adjustment) would be to use the STORE statement, and follow with PROC PLM, which has the full array of adjustment methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTOH, perhaps using one of the available methods such as adjust=simulate would provide better coverage. &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, 31 Mar 2014 11:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/help-with-quot-estimate-quot-statement-in-Proc-glimmix/m-p/159017#M8285</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-03-31T11:49:40Z</dc:date>
    </item>
  </channel>
</rss>

