<?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: LSMEANS for average of 2 treatment groups? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150282#M7917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that with LSMESTIMATE I can only get the overall LSM for trt 1&amp;amp;2 pooled but not the LSM at any level of a class variable. If I used time as a continuous covariate then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LSMESTIMATE trt 'Combined at M2' 0.5 0.5 0 / AT time=12; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;probably would give me the estmate I want, but with timecat (instead time) as a class variable it doesn't work. Or am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Feb 2014 14:46:00 GMT</pubDate>
    <dc:creator>Rolf</dc:creator>
    <dc:date>2014-02-03T14:46:00Z</dc:date>
    <item>
      <title>LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150278#M7913</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;I want to analyze a mixed model for repeated measurements at months 1,3,6,9,12,18,24. Treatments are active1 active2, and placebo. The model will be adjusted for the 3 quantitative (baseline, age, duration of disease) and 3 dichotomous factors. Month is intentionally modeled as a categorical factor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PROC MIXED ORDER=internal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; CLASS patid trt month covar1 covar2 covar3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; MODEL y= month &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disdur&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trt trt*month &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseline baseline*month &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; covar1 covar1*month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; covar2 covar2*month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; covar3 covar3*month&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; / S DDFM=KR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; REPEATED month / TYPE=un SUBJECT=patid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; LSMEANS trt*month covar1*month covar2*month covar3*month/ CL DIFF E;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to estimate LSM (s.e.) for the 3 treatment groups at Months 12 and Month 24. This I can do with a simple LSMEANS statement. &lt;/P&gt;&lt;P&gt;Question: How can I estimate the average LSM (s.e.) of the 2 active treatments?&lt;/P&gt;&lt;P&gt;The only way I can think of is to use the 'E' option in the LSMEANS statement to save the all covariates' coefficients used for constructing least square means, write the coefficients into macro variables, and then run the model again with a fairly complex ESTIMATE statement to derive the LSM of the pooled active treatments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have a simpler solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 11:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150278#M7913</guid>
      <dc:creator>Rolf</dc:creator>
      <dc:date>2014-01-23T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150279#M7914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need SAS 9.3 or higher.&amp;nbsp; The &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_introcom_a0000003366.htm"&gt;LSMESTIMATE&lt;/A&gt; statement "The LSMESTIMATE statement provides a mechanism for obtaining custom hypothesis tests among least squares means"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 11:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150279#M7914</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-01-23T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150280#M7915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, instead getting the coefficients for the quantitative outcomes from PROC MIXED I could retrieve them from PROC MEANS since the coefficients are the mean values.&lt;/P&gt;&lt;P&gt;Any ideas for an easier solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 11:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150280#M7915</guid>
      <dc:creator>Rolf</dc:creator>
      <dc:date>2014-01-23T11:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150281#M7916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The timestamps seem to indicate you might have missed data_null's suggestion regarding LSMESTIMATE.&amp;nbsp; It is the handiest tool in the mixed model procedures in my opinion.&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, 24 Jan 2014 17:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150281#M7916</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-01-24T17:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150282#M7917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that with LSMESTIMATE I can only get the overall LSM for trt 1&amp;amp;2 pooled but not the LSM at any level of a class variable. If I used time as a continuous covariate then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LSMESTIMATE trt 'Combined at M2' 0.5 0.5 0 / AT time=12; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;probably would give me the estmate I want, but with timecat (instead time) as a class variable it doesn't work. Or am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 14:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150282#M7917</guid>
      <dc:creator>Rolf</dc:creator>
      <dc:date>2014-02-03T14:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150283#M7918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trt*month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 15:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150283#M7918</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-02-03T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: LSMEANS for average of 2 treatment groups?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150284#M7919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, after all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LSMESTIMATE trt*month&amp;nbsp;&amp;nbsp; 0 0 0 0.5 0 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 0 0 0.5 0 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 0 0 0&amp;nbsp;&amp;nbsp; 0 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gave the same result as the 21 rows ESTIMATE statement I have been using so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought that with the LSMESTIMATE statement only 1 effect (i.e. trt, but not trt*month) could be specified because I misinterperted the following statement in the SAS documentation "&lt;EM&gt;In contrast to a multirow estimate in the ESTIMATE statement, you specify &lt;SPAN style="text-decoration: underline;"&gt;only a single effect&lt;/SPAN&gt; in the LSMESTIMATE statement&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, now I can shorten the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 15:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMEANS-for-average-of-2-treatment-groups/m-p/150284#M7919</guid>
      <dc:creator>Rolf</dc:creator>
      <dc:date>2014-02-03T15:31:29Z</dc:date>
    </item>
  </channel>
</rss>

