<?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: Interaction effect in MIANALYZE is not estiamted in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985040#M49341</link>
    <description>&lt;P&gt;Could you post the entire LOG that contains the GENMOD and MIANALYZE steps in it?&amp;nbsp; Seeing the output might also be helpful in diagnosing what is going on.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2026 14:27:55 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2026-03-20T14:27:55Z</dc:date>
    <item>
      <title>Interaction effect in MIANALYZE is not estiamted</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985038#M49340</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using a mutliple imputation and then run a GEE model on the 10 imputed datasets. The GEE model includes interaction between time and treatment (denoted as "randomisering"). I manage to pool all the model coefficients with MIANALYZE, but the interaction term is not estimated (appears as 0 in the MIANALYZE table). I have checked that interaction term in MIANALYZE is called exactly the same as in the gmparms table, but still get no estimate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=fatigue_migee;
by _imputation_;
class record_id gender randomisering timeclass;
model fatigue_total = randomisering  time_weeks randomisering*time_weeks
   gender inclusion_age/ dist=normaL LINK=identity maxiter=200 covb;
repeated subject=record_id/ withinsubject=timeclass
 type=exch;
 ods output GEEEmpPEst=gmparms parminfo=gmpinfo CovB=gmcovb ;
run;


proc mianalyze parms(classvar= level)=gmparms;
class gender randomisering;
modeleffects Intercept randomisering time_weeks time_week*randomiser gender inclusion_age;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Is there something I am missing? I see no reason that interaction term is not estimated, I have seen estiamtes in each of the 10 imputed datasets, so it should be possible to pool them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 20 Mar 2026 14:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985038#M49340</guid>
      <dc:creator>marina_unn</dc:creator>
      <dc:date>2026-03-20T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effect in MIANALYZE is not estiamted</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985040#M49341</link>
      <description>&lt;P&gt;Could you post the entire LOG that contains the GENMOD and MIANALYZE steps in it?&amp;nbsp; Seeing the output might also be helpful in diagnosing what is going on.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 14:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985040#M49341</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2026-03-20T14:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effect in MIANALYZE is not estiamted</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985125#M49349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, I can copy the log output here, I think it does not say so much. I will also inlcude the MIANALYZE output table, which shows interaction effect as zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MIANALYZE LOG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;40 proc genmod data=fatigue_migee;&lt;BR /&gt;41 by _imputation_;&lt;BR /&gt;42 class record_id gender randomisering timeclass;&lt;BR /&gt;43 model fatigue_total = randomisering time_weeks randomisering*time_weeks&lt;BR /&gt;44 gender inclusion_age/ dist=normaL LINK=identity maxiter=200 covb;&lt;BR /&gt;45 repeated subject=record_id/ withinsubject=timeclass&lt;BR /&gt;46 type=exch;&lt;BR /&gt;47 ods output GEEEmpPEst=gmparms parminfo=gmpinfo CovB=gmcovb ;&lt;BR /&gt;48 run;&lt;/P&gt;&lt;P&gt;NOTE: The variables in the WITHIN= subject effect are sorted by internal (unformatted) values. To sort by formatted values specify&lt;BR /&gt;the ORDER=FORMATTED option following the variable in the CLASS statement.&lt;BR /&gt;NOTE: Algorithm converged.&lt;BR /&gt;NOTE: Algorithm converged.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;Imputation Number=1&lt;BR /&gt;NOTE: Algorithm converged.&lt;BR /&gt;2&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.GMCOVB has 350 observations and 9 variables.&lt;BR /&gt;NOTE: The data set WORK.GMPINFO has 450 observations and 5 variables.&lt;BR /&gt;NOTE: The data set WORK.GMPARMS has 450 observations and 9 variables.&lt;BR /&gt;NOTE: PROCEDURE GENMOD used (Total process time):&lt;BR /&gt;real time 6.57 seconds&lt;BR /&gt;cpu time 6.57 seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE MIANALYZE used (Total process time):&lt;BR /&gt;real time 0.07 seconds&lt;BR /&gt;cpu time 0.07 seconds&lt;/P&gt;&lt;P&gt;44&lt;BR /&gt;45 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;46 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;47 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;48 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;49 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;50 %LET _SASPROGRAMFILE=;&lt;BR /&gt;2 The SAS System 08:39 Monday, March 23, 2026&lt;/P&gt;&lt;P&gt;51 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;52&lt;BR /&gt;53 ;*';*";*/;quit;run;&lt;BR /&gt;54 ODS _ALL_ CLOSE;&lt;BR /&gt;NOTE: Writing EXCEL(EGXLSSX) file: /saswork/prod/SAS_work3C1D0000F862_dvh-p-grid-01.hn.helsenord.no/#LN07206&lt;BR /&gt;55&lt;BR /&gt;56&lt;BR /&gt;57 QUIT; RUN;&lt;BR /&gt;58&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;And here I upload the GMPARMS table which have estiamted interaction effect (time_weeks*randomisering), and the output of MIANALYZE, where this interaction effect is zero.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="gmparms_table.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113740i9593D168704C41BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="gmparms_table.png" alt="gmparms_table.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="mianalyze_results.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113741i6C4EF3DF900AC2B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="mianalyze_results.png" alt="mianalyze_results.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 07:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985125#M49349</guid>
      <dc:creator>marina_unn</dc:creator>
      <dc:date>2026-03-23T07:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effect in MIANALYZE is not estiamted</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985149#M49351</link>
      <description>&lt;P&gt;Your MODELEFFECTS statement should match your MODEL statement as far as the variable names is concerned.&amp;nbsp; I think in your case there is some truncation that is going on from the GENMOD output.&amp;nbsp; All you need to do is add the NAMELEN= option to the GENMOD code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc genmod data=fatigue_migee namelen=100;
by _imputation_;
class record_id gender randomisering timeclass;
model fatigue_total = randomisering  time_weeks randomisering*time_weeks
   gender inclusion_age/ dist=normaL LINK=identity maxiter=200 covb;
repeated subject=record_id/ withinsubject=timeclass
 type=exch;
 ods output GEEEmpPEst=gmparms parminfo=gmpinfo CovB=gmcovb ;
run;


proc mianalyze parms(classvar= level)=gmparms;
class gender randomisering;
modeleffects Intercept randomisering  time_weeks randomisering*time_weeks
   gender inclusion_age;
run;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 14:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985149#M49351</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2026-03-23T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effect in MIANALYZE is not estiamted</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985151#M49352</link>
      <description>Thank you! That was exactly the issue that caused the problem!</description>
      <pubDate>Mon, 23 Mar 2026 14:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effect-in-MIANALYZE-is-not-estiamted/m-p/985151#M49352</guid>
      <dc:creator>marina_unn</dc:creator>
      <dc:date>2026-03-23T14:34:03Z</dc:date>
    </item>
  </channel>
</rss>

