<?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 lsmestimate in proc mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/lsmestimate-in-proc-mixed/m-p/609300#M29517</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just got below code, does anyone can help explain a little bit on the matrix following&amp;nbsp;&lt;FONT&gt;lsmestimate&lt;/FONT&gt; statement.&lt;/P&gt;&lt;P&gt;What does the matrix stands for?&lt;/P&gt;&lt;P&gt;From statistical perspective, how to explain the matrix?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could simply set time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; has 4 values like 1 ,2, 3, 4&lt;BR /&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; trt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; has 2 values as 'A' 'B'&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; &amp;nbsp; &amp;nbsp;&amp;nbsp; subgroup has 3 values as 'High' 'Low' 'Mid'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	       proc mixed data = test method = reml order = internal cl covtest;

	           class id time trt (ref = 'A')  subgroup  ;

	           model CHANGE = BASE*time trt*time*subgroup / solution ddfm=KR singular=1e-10;

	           repeated time / type=un subject=id;
	           lsmeans     trt*time*subgroup / pdiff om cl alpha=0.05;
	           lsmestimate trt*time*subgroup 
	         0  0  0  0  0  0
		 0  0  0  0  0  0
	         0  0  0  0  0  0
	        -2  1  1  2 -1 -1,
	         0  0  0  0  0  0
		 0  0  0  0  0  0
	         0  0  0  0  0  0
	         1 -2  1 -1  2 -1,
	         0  0  0  0  0  0
		 0  0  0  0  0  0
	         0  0  0  0  0  0
	         1  1 -2 -1 -1  2 /divisor=3 joint elsm cl e alpha=0.05;	
	       run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 08:27:37 GMT</pubDate>
    <dc:creator>Coooooo_Lee</dc:creator>
    <dc:date>2019-12-04T08:27:37Z</dc:date>
    <item>
      <title>lsmestimate in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmestimate-in-proc-mixed/m-p/609300#M29517</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just got below code, does anyone can help explain a little bit on the matrix following&amp;nbsp;&lt;FONT&gt;lsmestimate&lt;/FONT&gt; statement.&lt;/P&gt;&lt;P&gt;What does the matrix stands for?&lt;/P&gt;&lt;P&gt;From statistical perspective, how to explain the matrix?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could simply set time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; has 4 values like 1 ,2, 3, 4&lt;BR /&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; trt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; has 2 values as 'A' 'B'&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; &amp;nbsp; &amp;nbsp;&amp;nbsp; subgroup has 3 values as 'High' 'Low' 'Mid'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	       proc mixed data = test method = reml order = internal cl covtest;

	           class id time trt (ref = 'A')  subgroup  ;

	           model CHANGE = BASE*time trt*time*subgroup / solution ddfm=KR singular=1e-10;

	           repeated time / type=un subject=id;
	           lsmeans     trt*time*subgroup / pdiff om cl alpha=0.05;
	           lsmestimate trt*time*subgroup 
	         0  0  0  0  0  0
		 0  0  0  0  0  0
	         0  0  0  0  0  0
	        -2  1  1  2 -1 -1,
	         0  0  0  0  0  0
		 0  0  0  0  0  0
	         0  0  0  0  0  0
	         1 -2  1 -1  2 -1,
	         0  0  0  0  0  0
		 0  0  0  0  0  0
	         0  0  0  0  0  0
	         1  1 -2 -1 -1  2 /divisor=3 joint elsm cl e alpha=0.05;	
	       run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 08:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmestimate-in-proc-mixed/m-p/609300#M29517</guid>
      <dc:creator>Coooooo_Lee</dc:creator>
      <dc:date>2019-12-04T08:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: lsmestimate in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/lsmestimate-in-proc-mixed/m-p/609684#M29518</link>
      <description>&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glimmix_syntax14.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;The documentation for the LSMESTIMATE statement explains the meaning of the values.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you start by understanding the ideas for a single categorical variable, then try to understand a two-way interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your example shows a three-way interaction. There are three separate estimates specified. Each estimate involves 24 (=4*2*3) coefficients. The three estimates are separated by commas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to the doc, I recommend&amp;nbsp;&lt;A href="http://support.sas.com/rnd/app/stat/papers/abstracts/351-2011.html" target="_self"&gt;"CONTRAST and ESTIMATE Statements Made Easy: The LSMESTIMATE Statement"&lt;/A&gt;&lt;BR /&gt;by Kiernan, Tobias, Gibbs, and Tao (2001)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 13:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/lsmestimate-in-proc-mixed/m-p/609684#M29518</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-05T13:58:34Z</dc:date>
    </item>
  </channel>
</rss>

