<?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: Pooled estimate for interaction term in PROC MIANALYZE using PROC PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921157#M45775</link>
    <description>You could also use the NAMELEN= option on the PHREG statement to keep it from truncating the names of the effects.</description>
    <pubDate>Wed, 20 Mar 2024 18:12:56 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2024-03-20T18:12:56Z</dc:date>
    <item>
      <title>Pooled estimate for interaction term in PROC MIANALYZE using PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/919938#M45692</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imputed some survival data and want to get a pooled estimate for the interaction term included in the following model. The PROC PHREG model runs fine, and the interaction is statistically significant. The PROC MIANALYZE runs perfectly fine without the interaction term included. When I run the PROC MIANALYZE with the interaction term, it draws the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;"ERROR: The model effect derived with the specified CLASS statement, new_surgery1*timetrying, is not in the PARMS= data set. One likely reason is the variable ordering in the CLASS statement is not the same as the specified CLASS variable ordering in the procedure that creates the data set."&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I have confirmed that the variable ordering in the CLASS statement is the same. How can I get a pooled estimate for the interaction term? Here is my code:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;proc phreg data = mi;&lt;BR /&gt;class new_surgery1 (ref = "0") timetrying (ref = "0") prevpreg_cl (ref="1") prev_treat (ref="0")/PARAM=REF;&lt;BR /&gt;model (start1,stop1)*censored(1) = new_surgery1 timetrying prevpreg_cl prev_treat new_age_at_consent new_surgery1*timetrying/ ties=efron rl;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=a_preg;&lt;BR /&gt;HAZARDRATIO NEW_SURGERY1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms(classvar=ClassVal)=a_preg;&lt;BR /&gt;class new_surgery1 timetrying prevpreg_cl prev_treat;&lt;BR /&gt;modeleffects new_surgery1 timetrying prevpreg_cl prev_treat new_age_at_consent TIMETRYING*NEW_SURGERY1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 13:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/919938#M45692</guid>
      <dc:creator>Seth10</dc:creator>
      <dc:date>2024-03-12T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled estimate for interaction term in PROC MIANALYZE using PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921148#M45770</link>
      <description>&lt;P&gt;Could it be as simple as the variable is called "&lt;SPAN&gt;new_surgery1*timetrying" in the MODEL statement for PHREG, but is called "TIMETRYING*NEW_SURGERY1" in the MODELEFFECTS statement for MIANALYZE? MIANALYZE can be picky about things like the variables not having identical names (including case on occastion).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 17:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921148#M45770</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-03-20T17:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled estimate for interaction term in PROC MIANALYZE using PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921154#M45773</link>
      <description>&lt;P&gt;Thanks for your response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually just discovered in the output dataset that SAS shortened the interaction name to timetryin*new_surgery1. I included the new name in the PROC MIANALYZE and it worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 18:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921154#M45773</guid>
      <dc:creator>Seth10</dc:creator>
      <dc:date>2024-03-20T18:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pooled estimate for interaction term in PROC MIANALYZE using PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921157#M45775</link>
      <description>You could also use the NAMELEN= option on the PHREG statement to keep it from truncating the names of the effects.</description>
      <pubDate>Wed, 20 Mar 2024 18:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pooled-estimate-for-interaction-term-in-PROC-MIANALYZE-using/m-p/921157#M45775</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-03-20T18:12:56Z</dc:date>
    </item>
  </channel>
</rss>

