<?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 freezes SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/785279#M38529</link>
    <description>&lt;P&gt;that did it. Hopefully that is all from me. Many many thanks for the assistance!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 21:59:38 GMT</pubDate>
    <dc:creator>amcr729</dc:creator>
    <dc:date>2021-12-09T21:59:38Z</dc:date>
    <item>
      <title>PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/354782#M18657</link>
      <description>&lt;P&gt;I am trying to run a MI with logistic regression. The proc MI and proc logistic run fine, but when I try to run the proc MIanalyze, it just runs forever until the computer freezes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mi data=smokingr seed=550 out=p.outmi nimpute=10 minmaxiter=50;&lt;BR /&gt;class sex race smoking partnered ses smoke_d vitstat;&lt;BR /&gt;var sex race age2 yeardx_new smoke_d vitstat count ses partnered smoking;&lt;BR /&gt;fcs logistic(smoking ses/ link=glogit) logistic(partnered);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=p.outmi;&lt;BR /&gt;class sex race(ref="NH White") smoking(ref="Yes") partnered(ref="Not partnered") ses(ref="Low") / param=ref;&lt;BR /&gt;model vitstat = sex race age2 ses partnered smoke_d smoking yeardx_new count;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=parms;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=parms; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms(classvar=classval)=parms;&lt;BR /&gt;title "pooled estimates SAS MI";&lt;BR /&gt;class sex race smoking partnered ses smoke_d;&lt;BR /&gt;modeleffects intercept sex race age2 ses partnered smoke_d smoking yeardx_new count;&lt;BR /&gt;ods output parameterestimates=MIestimates;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 05:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/354782#M18657</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2017-04-30T05:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/354785#M18658</link>
      <description>&lt;P&gt;1. How big is your data? Number of rows or GB?&lt;/P&gt;
&lt;P&gt;2. Does it work with sample data, try an example from the documentation?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_mianalyze_examples07.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_mianalyze_examples07.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3. What version of SAS and SAS/STAT are you running?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 05:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/354785#M18658</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-30T05:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/354818#M18659</link>
      <description>&lt;P&gt;The example code runs perfectly. My data is small, about 2500 observations and its SAS 9.4&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 22:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/354818#M18659</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2017-04-30T22:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780297#M38294</link>
      <description>&lt;P&gt;having the same problem. did you figure it out?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 20:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780297#M38294</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-11-15T20:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780575#M38324</link>
      <description>&lt;P&gt;Post your code and we can see if there is anything unusual about it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780575#M38324</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-11-16T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780578#M38328</link>
      <description>&lt;P&gt;Thanks, here is the code for the imputation process overall. It is when I run the code under&amp;nbsp;&lt;FONT color="#0000FF"&gt;/*3. pooling phase*/, highlighted in blue,&lt;/FONT&gt;&amp;nbsp;that sas gets hung up, i.e. keeps running and never completes the procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*1. imputation phase*/&lt;BR /&gt;proc mi data=siya nimpute=20 out=mi_fcs;&lt;BR /&gt;class share give receive agyw drugs depression&lt;BR /&gt;ss worksite mobility pimp homeless money unsafe&lt;BR /&gt;disclose vs ed civil alcohol violrec viol;&lt;BR /&gt;fcs plots=trace(mean std);&lt;BR /&gt;var share give receive agyw drugs depression&lt;BR /&gt;ss worksite mobility pimp homeless money unsafe&lt;BR /&gt;disclose estigmasw estigmahiv astigmasw&lt;BR /&gt;astigmahiv pills303 pillsreceive303&lt;BR /&gt;pillsgive303 vs ed civil alcohol violrec viol ;&lt;BR /&gt;fcs discrim(share give receive agyw drugs depression&lt;BR /&gt;ss worksite mobility pimp homeless money unsafe&lt;BR /&gt;disclose vs ed civil alcohol violrec viol / classeffects=include) nbiter=100;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*2. analysis and pooling*/&lt;BR /&gt;proc genmod data=mi_fcs;&lt;BR /&gt;class pid civil (ref="0") depression (ref="0")&lt;BR /&gt;alcohol (ref="0") ed (ref="0") mobility (ref="0") unsafe (ref="0") money (ref="0") worksite (ref="0") /param=ref;&lt;BR /&gt;model vs=&lt;BR /&gt;pills303&lt;BR /&gt;agyw&lt;BR /&gt;ed&lt;BR /&gt;civil&lt;BR /&gt;alcohol&lt;BR /&gt;drugs&lt;BR /&gt;depression&lt;BR /&gt;mobility&lt;BR /&gt;worksite&lt;BR /&gt;pimp&lt;BR /&gt;violrec&lt;BR /&gt;homeless&lt;BR /&gt;money&lt;BR /&gt;unsafe&lt;BR /&gt;estigmasw&lt;BR /&gt;estigmahiv&lt;BR /&gt;astigmasw&lt;BR /&gt;astigmahiv disclose/Dist=poisson Link=log;&lt;BR /&gt;Repeated subject = pid / type=Ind PRINTMLE;&lt;BR /&gt;estimate 'pills303' pills303 1;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=gm_fcs;&lt;BR /&gt;title 'VS on pills given and/or received with MI';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;/*3. pooling phase*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;TITLE " MULTIPLE IMPUTATION Linear REGRESSION - FCS";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;PROC MIANALYZE parms(classvar=level)=gm_fcs;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class share give receive agyw drugs depression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;ss worksite mobility pimp homeless money unsafe &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;disclose vs ed civil alcohol violrec viol;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;MODELEFFECTS INTERCEPT share give receive agyw drugs depression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;ss worksite mobility pimp homeless money unsafe &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;disclose estigmasw estigmahiv astigmasw&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;astigmahiv pills303 pillsreceive303&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;pillsgive303 vs ed civil alcohol violrec viol;/*all variables from all models*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 21:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780578#M38328</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-11-16T21:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780593#M38329</link>
      <description>&lt;P&gt;You have a bunch of extra variables on the CLASS statement in MIANALYZE.&amp;nbsp; You should only be using variables involved in the model from GENMOD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIANALYZE parms(classvar=level)=gm_fcs;&lt;BR /&gt;class civil depression&amp;nbsp;alcohol&amp;nbsp; ed&amp;nbsp; mobility&amp;nbsp; unsafe&amp;nbsp; money worksite ;&lt;BR /&gt;MODELEFFECTS INTERCEPT pills303&lt;BR /&gt;agyw&lt;BR /&gt;ed&lt;BR /&gt;civil&lt;BR /&gt;alcohol&lt;BR /&gt;drugs&lt;BR /&gt;depression&lt;BR /&gt;mobility&lt;BR /&gt;worksite&lt;BR /&gt;pimp&lt;BR /&gt;violrec&lt;BR /&gt;homeless&lt;BR /&gt;money&lt;BR /&gt;unsafe&lt;BR /&gt;estigmasw&lt;BR /&gt;estigmahiv&lt;BR /&gt;astigmasw&lt;BR /&gt;astigmahiv disclose;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, since you are using a REPEATED statement in GENMOD you need to make sure that you are feeding the empirical estimates into MIANALYZE and not the MLEs.&amp;nbsp; In other words, your ODS OUTPUT statement is incorrect.&amp;nbsp; Use this one instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods output GEEEmpPest=gm_fcs;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 21:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780593#M38329</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-11-16T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780654#M38332</link>
      <description>&lt;P&gt;Thank you so much, that worked! But I am not getting the contrast estimate results I need when I run that PROC MIANALYZE code. do I include the estimate statement in it? Please advise, many thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 02:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780654#M38332</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-11-17T02:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780719#M38336</link>
      <description>&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csB59941D2"&gt;Combining ESTIMATE statement results can be done following this example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;data&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;test;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;do&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a=&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;1&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;to&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;3&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;do&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;rep=&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;1&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;to&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;10&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs72AC20A4"&gt;x=ranuni(&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;123&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;)*&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;10&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;if&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ranuni(&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;234&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;.55&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;then&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;y=&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;.&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;else&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;y=&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;.46&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;+&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;.88&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;*a+x+rannor(&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;123&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;output&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;end&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;end&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs72AC20A4"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csE86E809F"&gt;mi&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;data&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;=test&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;out&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;=outmi;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;var&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a x y;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;run&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;ods&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;trace&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;on&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csE86E809F"&gt;genmod&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;data&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;=outmi;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;by&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;_imputation_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;class&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;model&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;y=a x;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;estimate&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs871347D2"&gt;'A1_v_A2'&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;1&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;1&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;0&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;SPAN class="cs46D0AF0"&gt;*do not use spaces in the labels;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;estimate&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs871347D2"&gt;'A1_v_A3'&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;1&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;0&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN class="cs73B65413"&gt;1&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;ods&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;output&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;estimates=estimate_ds;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;run&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csE86E809F"&gt;sort&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;data&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;=estimate_ds;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;by&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;label _imputation_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;run&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csE86E809F"&gt;mianalyze&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csC21264EA"&gt;data&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;=estimate_ds;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;by&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;label;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;modeleffects&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;LBetaEstimate;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csC21264EA"&gt;stderr&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stderr;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE86E809F"&gt;run&lt;/SPAN&gt;&lt;SPAN class="cs72AC20A4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 12:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/780719#M38336</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-11-17T12:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783720#M38483</link>
      <description>&lt;P&gt;Thank you very much. I tried that code (below) and got the following error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: Invalid reference value for ed.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: No valid observations due to invalid or missing values in the response, explanatory, offset,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;frequency, or weight variable.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;NOTE: The above message was for the following BY group:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; pills303=0 Imputation Number=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: Data set WORK.MI_FCS is not sorted in ascending sequence. The current BY group has pills303 =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.3333333333 and the next BY group has pills303 = 0.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;WARNING: Output 'estimates' was not created.&amp;nbsp; Make sure that the output object name, label, or path&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;is spelled correctly.&amp;nbsp; Also, verify that the appropriate procedure options are used to&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;produce the requested output object.&amp;nbsp; For example, verify that the NOPRINT option is not&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;used.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not know what could be wrong with "ed" -- it has four categories, 0-3. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Pills303" is a continuous various (mean=0.63, range: 0-11.3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code I ran per your guidance:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc genmod data=mi_fcs;&lt;BR /&gt;class pid civil (ref="0") depression (ref="0")&lt;BR /&gt;alcohol (ref="0") ed (ref="0") mobility (ref="0") unsafe (ref="0") money (ref="0") worksite (ref="0") /param=ref;&lt;BR /&gt;model vs=&lt;BR /&gt;pills303&lt;BR /&gt;agyw&lt;BR /&gt;ed&lt;BR /&gt;civil&lt;BR /&gt;alcohol&lt;BR /&gt;drugs&lt;BR /&gt;depression&lt;BR /&gt;mobility&lt;BR /&gt;worksite&lt;BR /&gt;pimp&lt;BR /&gt;violrec&lt;BR /&gt;homeless&lt;BR /&gt;money&lt;BR /&gt;unsafe&lt;BR /&gt;estigmasw&lt;BR /&gt;estigmahiv&lt;BR /&gt;astigmasw&lt;BR /&gt;astigmahiv disclose/Dist=poisson Link=log;&lt;BR /&gt;Repeated subject = pid / type=Ind ;&lt;BR /&gt;estimate 'pills303' pills303 1 -1 0;&lt;BR /&gt;by pills303 _imputation_;&lt;BR /&gt;ods output estimates=estimate_ds;&lt;BR /&gt;title 'VS on pills given and/or received with MI';&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your help sorting this out would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 18:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783720#M38483</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-12-02T18:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783727#M38484</link>
      <description>ERROR: Data set WORK.MI_FCS is not sorted in ascending sequence. The current BY group has pills303 =&lt;BR /&gt;       3.3333333333 and the next BY group has pills303 = 0.&lt;BR /&gt;&lt;BR /&gt;That's the first issue to sort out, Once you fix that which errors are remaining?</description>
      <pubDate>Thu, 02 Dec 2021 18:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783727#M38484</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-02T18:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783761#M38485</link>
      <description>&lt;P&gt;Why are you adding Pills303 to the BY statement?&amp;nbsp; To have the same variable on both the BY statement and in the MODEL statement is going to cause singularity issues since for each value of Pills303 it will fit a different model (and the values are constant).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise, the ESTIMATE statement does not make sense since there is only a single coefficient for Pills303 and it looks like you are trying to compare two separate levels..&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783761#M38485</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-12-02T19:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783782#M38488</link>
      <description>&lt;P&gt;thank you for pointing out the mistakes. I fixed those and it ran fine. But: the proc mianalyze results still don't give me the contrast estimate (prevalence ratio) that I need. I just get the beta (lbetaestimate). Is there a way to get that?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 21:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/783782#M38488</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-12-02T21:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784352#M38505</link>
      <description>&lt;P&gt;Hi - any thoughts on how to get the pooled contrast estimates from proc mianalyze? thanks so much in advance, hopefully this is the last question!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 18:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784352#M38505</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-12-06T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784561#M38514</link>
      <description>&lt;P&gt;You would need to add the EXP option to the ESTIMATE statement and then combine those estimates specifically.&amp;nbsp; Something like the example below would work.&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;seed=2534565;&lt;BR /&gt;do _imputation_=1 to 25;&lt;BR /&gt;do i=1 to 250;&lt;BR /&gt;do ind1=0 to 1;&lt;BR /&gt;do ind2=0 to 1;&lt;BR /&gt;logit=-1 + .05*ind1-.67*ind2;&lt;BR /&gt;p=exp(-logit)/(1+exp(-logit));&lt;BR /&gt;if ranuni(seed)&amp;gt;p then y=1; else y=0;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;ods trace on;&lt;BR /&gt;proc genmod data=test;&lt;BR /&gt;model y=ind1 ind2 /dist=bin link=log;&lt;BR /&gt;by _Imputation_;&lt;BR /&gt;estimate 'Ind1 relative risk' ind1 1/exp;&lt;BR /&gt;estimate 'Ind2 relative risk' ind2 1/exp;&lt;BR /&gt;ods output Estimates=est_ds(where=(index(label,'Exp')=1));*Keeps the EXP values and their standard errors;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sort data=est_ds;&lt;BR /&gt;by label _imputation_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze data=est_ds;&lt;BR /&gt;by label;&lt;BR /&gt;modeleffects LBetaEstimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 16:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784561#M38514</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-12-07T16:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784596#M38517</link>
      <description>&lt;P&gt;thank you. is the 'data test' code necessary in all cases, or can I just use proc genmod on?&amp;nbsp; I don't understand what is happening with the 'data test' code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784596#M38517</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-12-07T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784888#M38521</link>
      <description>&lt;P&gt;No, the first step is not necessary in your case.&amp;nbsp; It simply generated a sample data set to use.&amp;nbsp; You should use the GENMOD step on.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 12:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784888#M38521</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-12-08T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784928#M38523</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;got it, thanks. I ran it, but the results don't seem right to me unless I am reading them wrong. I am assuming that the estimate under "lbetaestimate" is not the beta but the pooled prevalence ratio (contrast estimate). That estimate and CI seem fine but the p-value (&amp;lt;.0001) seems off-- see page 31 of attachment. For all 5 imputations, the p-value is around .2 (see pages 16-30). any thoughts on what could be going wrong here? Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/784928#M38523</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-12-08T15:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/785169#M38524</link>
      <description>&lt;P&gt;The default test is whether or not it is equal to 0.&amp;nbsp; You would want to modify that to test if it is equal to 1.&amp;nbsp; This can be done by specifying the THETA0=1 option on the MIANALYZE statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_mianalyze_syntax01.htm#statug.mianalyze.theta0opt" target="_blank"&gt;SAS Help Center: PROC MIANALYZE Statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 15:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/785169#M38524</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-12-09T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE freezes SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/785241#M38525</link>
      <description>&lt;P&gt;Got it, that worked! thanks. I am now trying to get multiply imputed results for a different genmod model (same imputation model, dataset etc) where I am producing contrast estimates for several variables, this time including several categorical ones, and am getting error messages. Thanks in advance for your help. Here is the code and the error message I get when I run proc mianalyze:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc genmod data=mi_fcs;&lt;BR /&gt;class pid ss (ref="0") civil (ref="0") depression (ref="0")&lt;BR /&gt;alcohol (ref="0") ed (ref="0") mobility (ref="0") money (ref="0")&lt;BR /&gt;unsafe (ref="0") /param=ref;&lt;BR /&gt;model share=&lt;BR /&gt;ed&lt;BR /&gt;civil&lt;BR /&gt;alcohol&lt;BR /&gt;drugs&lt;BR /&gt;depression&lt;BR /&gt;ss&lt;BR /&gt;mobility&lt;BR /&gt;pimp&lt;BR /&gt;money&lt;BR /&gt;unsafe&lt;BR /&gt;viol&lt;BR /&gt;estigmasw&lt;BR /&gt;estigmahiv&lt;BR /&gt;astigmasw/Dist=poisson Link=log;&lt;BR /&gt;Repeated subject = pid / type=Ind;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;estimate 'Incomplete secondary vs. any primary or none' ed 1 0 0 /exp;&lt;BR /&gt;estimate 'Complete secondary vs. any primary or none' ed 0 1 0 /exp;&lt;BR /&gt;estimate 'Incomplete or complete university or technical vs. any primary or none' ed 0 0 1/exp;&lt;BR /&gt;estimate 'Partner, cohab vs single' civil 0 1/exp;&lt;BR /&gt;estimate 'Partner, non-cohab vs single' civil 1 0/exp;&lt;BR /&gt;estimate 'Alcohol freq =&amp;lt;monthly vs never' alcohol 1 0 0 0/exp;&lt;BR /&gt;estimate 'Alcohol freq 2-4x/mo vs never' alcohol 0 1 0 0/exp;&lt;BR /&gt;estimate 'Alcohol freq 2-3x/wk vs never' alcohol 0 0 1 0/exp;&lt;BR /&gt;estimate 'Alcohol freq =&amp;gt;4x/wk vs never' alcohol 0 0 0 1/exp;&lt;BR /&gt;estimate 'Drug use &amp;lt;30 days: yes vs. no' drugs 1/exp;&lt;BR /&gt;estimate 'Depression: mild vs none/minimal' depression 1 0 0 0/exp;&lt;BR /&gt;estimate 'Depression: moderate vs none/minimal' depression 0 1 0 0/exp;&lt;BR /&gt;estimate 'Depression: moderately severe vs none/minimal' depression 0 0 1 0/exp;&lt;BR /&gt;estimate 'Depression: severe vs none/minimal' depression 0 0 0 1/exp;&lt;BR /&gt;estimate 'Social support: moderate vs low' ss 1 0/exp;&lt;BR /&gt;estimate 'Social support: high vs low' ss 0 1/exp;&lt;BR /&gt;estimate 'Mobility: nights spent outside Durban &amp;lt;6 mos.' mobility 1 /exp;&lt;BR /&gt;estimate 'Share earnings with pimp or other: yes vs. no' pimp 1/exp;&lt;BR /&gt;Estimate 'Enough money for needs: A little vs not at all' money 1 0 0 /exp;&lt;BR /&gt;Estimate 'Enough money for needs: Moderately vs not at all' money 0 1 0/exp;&lt;BR /&gt;Estimate 'Enough money for needs: Mostly or completely vs not at all' money 0 0 1/exp;&lt;BR /&gt;Estimate 'safe in daily life: Moderately vs Very much/extremely' unsafe 1 0 0 /exp;&lt;BR /&gt;Estimate 'safe in daily life: A little vs Very much/extremely' unsafe 0 1 0/exp;&lt;BR /&gt;Estimate 'safe in daily life: Not at all vs Very much/extremely' unsafe 0 0 1/exp;&lt;BR /&gt;estimate 'Physical and/or sexual violence ever: yes vs no' viol 1/exp;&lt;BR /&gt;estimate 'Enacted SW stigma level' estigmasw 1/exp;&lt;BR /&gt;estimate 'Enacted HIV stigma level' estigmaHIV 1/exp;&lt;BR /&gt;estimate 'Anticipated SW stigma level' astigmasw 1/exp;&lt;BR /&gt;ods output estimates=estimate_ds(where=(index(label,'Exp')=1));&lt;BR /&gt;title 'Sharing (Ever)correlates - robust poisson- MI';&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=estimate_ds ;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;run;&lt;BR /&gt;proc mianalyze data=estimate_ds THETA0=1 ;&lt;BR /&gt;by label;&lt;BR /&gt;modeleffects LBetaEstimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: Data set WORK.ESTIMATE_DS is not sorted in ascending sequence. The current BY group has Label&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= Exp(Incomplete secondary vs. any primary or none) and the next BY group has Label =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Exp(Complete secondary vs. any primary or none).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 18:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-freezes-SAS/m-p/785241#M38525</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-12-09T18:53:05Z</dc:date>
    </item>
  </channel>
</rss>

