<?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: MI ANALYZE by group(regions) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882787#M43674</link>
    <description>&lt;P&gt;It looks like the data is not properly sorted.&amp;nbsp; Try sorting it first and see if that takes care of the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sort data=mixed_gp_parms;&lt;BR /&gt;by region _imputation_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc mianalyze parms=mixed_gp_parms ; &lt;BR /&gt;title 'MIANALYZE of MIXED with GP as covariate'; &lt;BR /&gt;class sgp sex age7 ; &lt;BR /&gt;modeleffects intercept sgp age7*sex;&lt;BR /&gt;by region;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 13:07:00 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2023-06-28T13:07:00Z</dc:date>
    <item>
      <title>MI ANALYZE by group(regions)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882309#M43643</link>
      <description>&lt;P&gt;Greetings community,&lt;/P&gt;&lt;P&gt;am trying to do multiple imputation and I which to have pooled estimates through the function MIANALYZE by region, but I don't how to include that in my code&lt;/P&gt;&lt;PRE&gt;proc mi nimpute=2 data=Work.query seed=45 out=want_imp1;
class age7 sgp region province ghq12 sex;
fcs regression (lnbmi) logistic (sgp) discrim (province) ;
var id hh wfin  age7 lnbmi    ghq12  province region sgp sex;
run ;
 

proc mixed data= want_imp1;
title 'PROC MIXED weighted + clustered GP after MI';
by _imputation_ regionch;
weight wfin;
class hh age7 sex sgp ;
model lnbmi = GHQ12 sgp sex*age7 / solution covb;
random intercept / subject=hh;
ods output SolutionF = mixed_GP_parms covb = mixed_GP_cov;
run;


proc mianalyze parms=mixed_gp_parms ;
title 'MIANALYZE of MIXED with GP as covariate';
class sgp sex age7 ;
modeleffects intercept sgp  age7*sex;&lt;BR /&gt;by region
run;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 10:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882309#M43643</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-06-25T10:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: MI ANALYZE by group(regions)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882438#M43644</link>
      <description>&lt;P&gt;That code should work, assuming you have a typo in the MIXED code on the BY statement with the variable regionch instead of region.&amp;nbsp; Can you post the LOG so we can see exactly what is going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882438#M43644</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-06-26T13:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: MI ANALYZE by group(regions)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882695#M43667</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-06-27 10.23.46 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85424iD33BFAD82A8CFBCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-06-27 10.23.46 PM.png" alt="Screenshot 2023-06-27 10.23.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 20:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882695#M43667</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-06-27T20:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: MI ANALYZE by group(regions)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882787#M43674</link>
      <description>&lt;P&gt;It looks like the data is not properly sorted.&amp;nbsp; Try sorting it first and see if that takes care of the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sort data=mixed_gp_parms;&lt;BR /&gt;by region _imputation_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc mianalyze parms=mixed_gp_parms ; &lt;BR /&gt;title 'MIANALYZE of MIXED with GP as covariate'; &lt;BR /&gt;class sgp sex age7 ; &lt;BR /&gt;modeleffects intercept sgp age7*sex;&lt;BR /&gt;by region;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 13:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882787#M43674</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-06-28T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: MI ANALYZE by group(regions)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882822#M43676</link>
      <description>&lt;P&gt;Thanks very much. It worked for me.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 17:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MI-ANALYZE-by-group-regions/m-p/882822#M43676</guid>
      <dc:creator>Gilles-Protais</dc:creator>
      <dc:date>2023-06-28T17:05:13Z</dc:date>
    </item>
  </channel>
</rss>

