<?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: Combining LSMEANS Output in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957429#M47944</link>
    <description>Thanks for your help.</description>
    <pubDate>Tue, 28 Jan 2025 03:12:55 GMT</pubDate>
    <dc:creator>lansoprazole</dc:creator>
    <dc:date>2025-01-28T03:12:55Z</dc:date>
    <item>
      <title>Combining LSMEANS Output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957353#M47942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need help with combining the LSMEANS output of PROC GLIMMIX using PROC MIANALYZE.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is LSMEANS output table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lansoprazole_0-1738010062931.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104033i238DB0EB60387121/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lansoprazole_0-1738010062931.png" alt="lansoprazole_0-1738010062931.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to combine each pairwise comparison's odds ratio and adjusted CL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;MIANALYZE&lt;/STRONG&gt; &lt;SPAN&gt;parms&lt;/SPAN&gt;&lt;SPAN&gt;=lsestim ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MODELEFFECTS&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;induction ;&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;but it ended up with one combined estimate, as shown:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lansoprazole_1-1738010194853.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104034i5231E6F0D225E0D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lansoprazole_1-1738010194853.png" alt="lansoprazole_1-1738010194853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried other PROC MIANALYZE statements but did not get anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if I can get something similar to:&lt;/P&gt;
&lt;P&gt;Induction &amp;nbsp; _induction OR LCL UCL&lt;/P&gt;
&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;123 123 &amp;nbsp; 123&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957353#M47942</guid>
      <dc:creator>lansoprazole</dc:creator>
      <dc:date>2025-01-27T20:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Combining LSMEANS Output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957410#M47943</link>
      <description>The approach should be the same as it is in Proc MIXED.  See the example in the usage note below.&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/30/715.html" target="_blank"&gt;https://support.sas.com/kb/30/715.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2025 00:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957410#M47943</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-01-28T00:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Combining LSMEANS Output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957429#M47944</link>
      <description>Thanks for your help.</description>
      <pubDate>Tue, 28 Jan 2025 03:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957429#M47944</guid>
      <dc:creator>lansoprazole</dc:creator>
      <dc:date>2025-01-28T03:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combining LSMEANS Output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957432#M47945</link>
      <description>&lt;P&gt;This is helpful. Hoewever, these steps only combine the estimate and the unadjusted stnd error and unadjusted CL. Do you know how to pool the adjusted lower and upper CL?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 03:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957432#M47945</guid>
      <dc:creator>lansoprazole</dc:creator>
      <dc:date>2025-01-28T03:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combining LSMEANS Output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957451#M47946</link>
      <description>&lt;P&gt;The theory behind multiply imputed data only takes estimates and their standard errors and gives combined estimates.&amp;nbsp; It does not lend itself to combining confidence intervals or p-values (adjusted or unadjusted).&amp;nbsp; My suggestion would be to combine the estimates using MIANALYZE like shown and then save the p-values to a SAS data set.&amp;nbsp; You could then use on the p-value adjustment methods available in Proc MULTTEST.&lt;/P&gt;
&lt;P&gt;Note that not all the p-value adjustment methods are available in MULTTEST that are in GLIMMIX.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_multtest_syntax01.htm" target="_blank"&gt;SAS Help Center: PROC MULTTEST Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; data outmi;
      do _imputation_=1 to 3;
      do trt='test','trt1','trt2','trt3';
      do rep=1 to 10;
         trtn+1;
         y=1.3+.18*trtn+rannor(123);
         output;
      end; end; end;
      run;
   
   proc glimmix data=outmi;
      by _imputation_;
      class trt;
      model y=trt;
      lsmeans trt/diff;
      ods output diffs=diff;
      run;
   
   data diff2;
      set diff;
      comparison=trt||' vs '||left(_trt);
      run;
   
   proc sort data=diff2;
      by comparison _imputation_;
      run;
   
   proc mianalyze data=diff2;
      by comparison;
      modeleffects estimate;
      stderr stderr;
	  ods output ParameterEstimates=estimate_ds(rename=(probt=raw_p comparison=test));
      run;
	  proc multtest inpvalues=estimate_ds holm hoc fdr bon;
	  run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-LSMEANS-Output/m-p/957451#M47946</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-01-28T13:15:15Z</dc:date>
    </item>
  </channel>
</rss>

