<?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: PROC MIANALYZE procedure after PROC GLIMMIX binary outcome, 2-level model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463544#M24152</link>
    <description>&lt;P&gt;Thanks, &lt;SPAN class=""&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173" target="_self"&gt;SAS_Rob&lt;/A&gt;! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I use the &lt;SPAN&gt;/*Combining Random Effects*/&amp;nbsp;&lt;/SPAN&gt;code you provided, I just get 20 separate estimates for 20 imputation sets. I am looking for a way to have one pulled level 2 variance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I am able to do that for the fixed effects by using this program--at the end of the analysis, I have the combined effects for the 20 models.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=dissert.centered METHOD=LAPLACE NOCLPRINT;&lt;BR /&gt;CLASS cdscode ethn_r (ref=FIRST) sex (ref=FIRST)sex;&lt;BR /&gt;MODEL m_health (EVENT=LAST)= ethn_r sex grade_new_c /CL DIST=BINARY LINK=LOGIT SOLUTION&lt;BR /&gt;ODDSRATIO (DIFF=FIRST LABEL);&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT=cdscode S CL TYPE=VC;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;nloptions gconv=0;&lt;BR /&gt;ods output ParameterEstimates=lgsparm35;&lt;BR /&gt;COVTEST /WALD;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms = lgsparm35;&lt;BR /&gt;CLASS ethn_r sex;&lt;BR /&gt;modeleffects Intercept ethn_r sex grade_new_c;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jelena&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 May 2018 16:40:25 GMT</pubDate>
    <dc:creator>jtsfyu</dc:creator>
    <dc:date>2018-05-19T16:40:25Z</dc:date>
    <item>
      <title>PROC MIANALYZE procedure after PROC GLIMMIX binary outcome, 2-level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/462249#M24138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the blimp application to do multiple imputations for my missing data and was able to successfully&amp;nbsp;run my 2-level hierarchical models using the imputed data. I can get pulled fixed effects, but I cannot figure out how to get my pulled Error Variance/Level-2 Intercept and my pulled model fit. Below is the program for one of my final models and my PROC&amp;nbsp;MIANALYZE step. Thank you in advance for your help!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=dissert.centered METHOD=LAPLACE NOCLPRINT;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;CLASS cdscode ethn_new (ref=FIRST) sex (ref=FIRST);&lt;BR /&gt;MODEL m_health (EVENT=LAST)= p_ed sex ethn_new grade_new_c cumAA_c RJLevel YearsImp_c PeerRJ WhS/CL DIST=BINARY LINK=LOGIT SOLUTION&lt;BR /&gt;ODDSRATIO (DIFF=FIRST LABEL);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT=cdscode S CL TYPE=VC;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=lgsparm1;&lt;BR /&gt;COVTEST /WALD;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC&amp;nbsp;MIANALYZE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parms = lgsparm1;&lt;BR /&gt;CLASS ethn_new sex;&lt;BR /&gt;modeleffects Intercept p_ed sex ethn_new grade_new_c cumAA_c RJLevel YearsImp_c PeerRJ WhS;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 03:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/462249#M24138</guid>
      <dc:creator>jtsfyu</dc:creator>
      <dc:date>2018-05-15T03:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE procedure after PROC GLIMMIX binary outcome, 2-level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463079#M24140</link>
      <description>&lt;P&gt;Below is a sample program that shows how to combine the results from Proc GLIMMIX in MIANALYZE.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt; seed=621435234;&lt;BR /&gt; do id=1 to 30;&lt;BR /&gt; rc=rannor(seed); /* random effect on intercept for id */&lt;BR /&gt; rb=rannor(seed)*.7; /* random effect on slope for id */&lt;BR /&gt; do rep=1 to 20;&lt;BR /&gt; x1=ranuni(seed);&lt;BR /&gt; x2=ranuni(seed);&lt;BR /&gt; logit=-2 + (2+rb)*x1 + rc+.08*x2;&lt;BR /&gt; p=exp(logit)/(1+exp(logit));&lt;BR /&gt; if ranuni(seed)&amp;lt; p then y=1; else y=0;&lt;BR /&gt; output;&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data test;set test; &lt;BR /&gt;if ranuni(312)&amp;gt;.5 then x2=.;*create missing values;&lt;BR /&gt;run;&lt;BR /&gt;proc mi data=test out=out1 seed=10;&lt;BR /&gt;var y x1 x2;&lt;BR /&gt;run;&lt;BR /&gt;ods trace on;&lt;BR /&gt;proc glimmix data=out1;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class id;&lt;BR /&gt;model y=x1 x2/d=binomial solution or(label);;&lt;BR /&gt;random intercept/subject=id solution;&lt;BR /&gt;ods output parameterestimates=parms solutionr=rand(rename=(stderrpred=stderr));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/*Combining Random Effects*/&lt;BR /&gt;proc sort data=rand;&lt;BR /&gt;by effect subject _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze parms=rand;&lt;BR /&gt;by subject;&lt;BR /&gt;modeleffects intercept;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 17:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463079#M24140</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-05-17T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE procedure after PROC GLIMMIX binary outcome, 2-level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463544#M24152</link>
      <description>&lt;P&gt;Thanks, &lt;SPAN class=""&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173" target="_self"&gt;SAS_Rob&lt;/A&gt;! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I use the &lt;SPAN&gt;/*Combining Random Effects*/&amp;nbsp;&lt;/SPAN&gt;code you provided, I just get 20 separate estimates for 20 imputation sets. I am looking for a way to have one pulled level 2 variance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I am able to do that for the fixed effects by using this program--at the end of the analysis, I have the combined effects for the 20 models.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=dissert.centered METHOD=LAPLACE NOCLPRINT;&lt;BR /&gt;CLASS cdscode ethn_r (ref=FIRST) sex (ref=FIRST)sex;&lt;BR /&gt;MODEL m_health (EVENT=LAST)= ethn_r sex grade_new_c /CL DIST=BINARY LINK=LOGIT SOLUTION&lt;BR /&gt;ODDSRATIO (DIFF=FIRST LABEL);&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT=cdscode S CL TYPE=VC;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;nloptions gconv=0;&lt;BR /&gt;ods output ParameterEstimates=lgsparm35;&lt;BR /&gt;COVTEST /WALD;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms = lgsparm35;&lt;BR /&gt;CLASS ethn_r sex;&lt;BR /&gt;modeleffects Intercept ethn_r sex grade_new_c;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jelena&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 16:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463544#M24152</guid>
      <dc:creator>jtsfyu</dc:creator>
      <dc:date>2018-05-19T16:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE procedure after PROC GLIMMIX binary outcome, 2-level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463766#M24153</link>
      <description>&lt;P&gt;Because you use the SUBJECT= option on the RANDOM statement, you will get an estimate for each of the subjects.&amp;nbsp; That is why you get multiple estimates and you have to use the BY statement in MIANALYZE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, there is not one overall estimate, but instead one overall estimate for each subject.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 12:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-procedure-after-PROC-GLIMMIX-binary-outcome-2/m-p/463766#M24153</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-05-21T12:31:53Z</dc:date>
    </item>
  </channel>
</rss>

