<?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: Combining Imputations in Proc PHREG after Multiple Imputation in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657493#M31480</link>
    <description>&lt;P&gt;It would be helpful to see what exactly isn't working in the MIANALYZE step with the LOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the MIANALYZE code should just be something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mianalyze parms(classvar=classval)=SRTR_BLACK_ES;&lt;/P&gt;
&lt;P&gt;class Group &amp;amp;varlist_cat;&lt;BR /&gt;modeleffects&amp;nbsp;Group &amp;amp;varlist_cat &amp;amp;varlist_cont;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 13:00:36 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2020-06-11T13:00:36Z</dc:date>
    <item>
      <title>Combining Imputations in Proc PHREG after Multiple Imputation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657447#M31474</link>
      <description>&lt;P&gt;Greetings All, I am a non-statistician and have only been using SAS for a few months. I am working with a medical registry to conduct survival analysis and have observed missing data at random. I have run Proc MI to create 5 imputation data sets, but am getting stuck on the 2nd step when I analyze the set using Proc PHREG. Examples I have seen call for outputing the parameter estimates using the ODS Output statement (see below). When I then attempt to sort that new dataset prior to using Proc MIANALYZE it does not seem to exist. I would appreciate any advise on this code and examples of successful code for these 3 steps (Proc MI, Proc PHREG, Proc MIANALYZE). Thank you so much for your help in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Use multiple imputation for missing data values */
proc mi data=SRTR.BLACK_TX2 round=0.001 nimpute=5 seed=123456 out=SRTR.BLACK_MI noprint;
	class &amp;amp;VARLIST_CAT;
	var &amp;amp;VARLIST_CAT &amp;amp;VARLIST_CONT;
	fcs;
run;

/* Run Cox regression of multiply imputed data */
proc phreg data=SRTR.BLACK_MI;
	by _Imputation_;
	class Group &amp;amp;varlist_cat;
	model TTE_10 * Death_10(0) = Group &amp;amp;varlist_cat &amp;amp;varlist_cont
		/ ties=efron rl;
	ods output ParameterEstimates=SRTR_BLACK_ES;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 11:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657447#M31474</guid>
      <dc:creator>wbaker0621</dc:creator>
      <dc:date>2020-06-11T11:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Imputations in Proc PHREG after Multiple Imputation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657476#M31479</link>
      <description>&lt;P&gt;What does it say in the log? Is SRTR_BLACK_ES created, or does something else happen? Without the log, it is very hard to tell what might be happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 12:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657476#M31479</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-11T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Imputations in Proc PHREG after Multiple Imputation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657493#M31480</link>
      <description>&lt;P&gt;It would be helpful to see what exactly isn't working in the MIANALYZE step with the LOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the MIANALYZE code should just be something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mianalyze parms(classvar=classval)=SRTR_BLACK_ES;&lt;/P&gt;
&lt;P&gt;class Group &amp;amp;varlist_cat;&lt;BR /&gt;modeleffects&amp;nbsp;Group &amp;amp;varlist_cat &amp;amp;varlist_cont;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657493#M31480</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-06-11T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Imputations in Proc PHREG after Multiple Imputation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657496#M31481</link>
      <description>&lt;P&gt;Great point. This newbie still hasn't gotten used to looking at the log. The datafile was created, but was put in the work folder.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657496#M31481</guid>
      <dc:creator>wbaker0621</dc:creator>
      <dc:date>2020-06-11T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Imputations in Proc PHREG after Multiple Imputation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657518#M31483</link>
      <description>&lt;P&gt;Thanks all. This combination of code worked, once I payed attention to the log and knew where the output files were headed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Run Cox regression of multiply imputed data */
proc phreg data=SRTR.BLACK_MI;
	by _Imputation_;
	class Group(ref='WHITE_WOMAN') &amp;amp;varlist_cat;
	model TTE_10 * Death_10(0) = Group &amp;amp;varlist_cat &amp;amp;varlist_cont
		/ ties=efron rl;
	ods output ParameterEstimates=SRTR_BLACK_ES;
run;

/* Combine model coefficients */
proc sort data=work.srtr_black_es;
	by Parameter ClassVal0 _Imputation_;
run;

proc mianalyze data=work.srtr_black_es;
	by Parameter ClassVal0;
	modeleffects Estimate;
	stderr StdErr;
	ods output ParameterEstimates = SRTR_Black_es_mianal;
run;

/* Exponentiate in order to obtain hazard ratio estimates and confidence intervals */
data srtr.black_HR; set work.srtr_black_es_mianal;
	Log_HR_comb=Estimate;
	HR_comb=exp(Estimate);
	HR_LCL_comb=exp(LCLMean);
	HR_UCL_comb=exp(UCLMean);
	keep Parameter ClassVal0 HR_comb HR_LCL_comb HR_UCL_comb Probt;
	rename Probt=HR_pval_comb;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combining-Imputations-in-Proc-PHREG-after-Multiple-Imputation/m-p/657518#M31483</guid>
      <dc:creator>wbaker0621</dc:creator>
      <dc:date>2020-06-11T13:42:29Z</dc:date>
    </item>
  </channel>
</rss>

