<?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: Getting confidence interval in PROC MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250199#M13185</link>
    <description>&lt;P&gt;Just add the &lt;STRONG&gt;diff&lt;/STRONG&gt; option to the lsmeans statement.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2016 21:53:54 GMT</pubDate>
    <dc:creator>lvm</dc:creator>
    <dc:date>2016-02-15T21:53:54Z</dc:date>
    <item>
      <title>Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250145#M13174</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running mixed models using PROC MIXED.&lt;/P&gt;&lt;P&gt;Here are my codes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=try covtest;
	class month pid;
	model outc=age male month|treatment / s;
	random int / subject=pid;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;                                                              Standard
Effect                       month   Estimate      Error     DF   t Value   Pr &amp;gt; |t|

treatment                              4.8044     0.7133   12E3      6.74     &amp;lt;.0001
treatment*month                  4    -4.6793     1.1857   12E3     -3.95     &amp;lt;.0001
treatment*month                  5    -3.3753     0.8922   12E3     -3.78     0.0002
treatment*month                  6    -2.9591     0.8697   12E3     -3.40     0.0007
treatment*month                  7    -0.3250     0.8824   12E3     -0.37     0.7126
treatment*month                  8          0          .      .       .        .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to get the treatment effects in each month, i.e. 4.8 + (-4.7) = 0.1 in month 4, 4.8 + (-3.4) = 1.4 in month 5. Is there any way to get confidence intervals for the calculated values (0.1, 1.4, etc)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 19:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250145#M13174</guid>
      <dc:creator>tinaning</dc:creator>
      <dc:date>2016-02-15T19:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250166#M13179</link>
      <description>&lt;P&gt;Have you tried adding CL to your MODEL statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model outc=age male month|treatment / s CL;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect015.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect015.htm&lt;/A&gt;&lt;/P&gt;
&lt;TABLE id="statug.mixed.mixtabmodel" class="tabular" cellspacing="0" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_mixed_sect015.htm#statug.mixed.mixedmodelcl" target="_blank"&gt;CL&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;displays confidence limits for fixed-effects parameter estimates&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 20:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250166#M13179</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-15T20:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250176#M13181</link>
      <description>&lt;P&gt;It only gives CI for each fixed parameter estimates, I need CI for the linear combination, i.e. 4.8+(-4.7)=0.1&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 20:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250176#M13181</guid>
      <dc:creator>tinaning</dc:creator>
      <dc:date>2016-02-15T20:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250178#M13182</link>
      <description>&lt;P&gt;Use the LSMEANS statement, with a CL option.&lt;/P&gt;
&lt;PRE&gt;proc mixed data=try covtest;
	class month treatment pid; /*notice that I have added treatment as a class effect */
	model outc=age male month|treatment / s;
	random int / subject=pid;
LSMEANS month*treatment/cl;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 20:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250178#M13182</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-02-15T20:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250187#M13184</link>
      <description>&lt;P&gt;Thanks Steve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your codes, LSMEANS show CI for the means of the outcome variable in each specified groups, not exactly what I was trying to calculate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get CI for 4.8+(-4.7)=0.1. It won't be significant if CI spans zero.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 20:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250187#M13184</guid>
      <dc:creator>tinaning</dc:creator>
      <dc:date>2016-02-15T20:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250199#M13185</link>
      <description>&lt;P&gt;Just add the &lt;STRONG&gt;diff&lt;/STRONG&gt; option to the lsmeans statement.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 21:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250199#M13185</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-02-15T21:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting confidence interval in PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250205#M13186</link>
      <description>&lt;P&gt;Great! I got it right, thanks Steve and lvm.&lt;/P&gt;&lt;P&gt;Here are my complete codes for share.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output diffs=diffdata;
proc mixed data=try covtest;
	class month pid treatment;
	model outc=age male month|treatment / s;
	lsmeans month*treatment / cl diff;
	random int / subject=pid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Feb 2016 22:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-confidence-interval-in-PROC-MIXED/m-p/250205#M13186</guid>
      <dc:creator>tinaning</dc:creator>
      <dc:date>2016-02-15T22:13:30Z</dc:date>
    </item>
  </channel>
</rss>

