<?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: How to use PROC MIANALYZE with PROC PHREG for competing risks? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676737#M32437</link>
    <description>&lt;P&gt;With a CLASS statement I would suggest not using the OUTEST= data set, but an ODS OUTPUT ParameterEstimates= statement instead.&amp;nbsp; You should be able to do something similar to my example below.&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt;value DiseaseGroup 1='ALL'&lt;BR /&gt;2='AML-Low Risk'&lt;BR /&gt;3='AML-High Risk';&lt;/P&gt;
&lt;P&gt;data Bmt;&lt;BR /&gt;input Disease T Status @@;&lt;BR /&gt;label T='Disease-Free Survival in Days';&lt;BR /&gt;format Disease DiseaseGroup.;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2081 0 1 1602 0 1 1496 0 1 1462 0 1 1433 0&lt;BR /&gt;1 1377 0 1 1330 0 1 996 0 1 226 0 1 1199 0&lt;BR /&gt;1 1111 0 1 530 0 1 1182 0 1 1167 0 1 418 2&lt;BR /&gt;1 383 1 1 276 2 1 104 1 1 609 1 1 . 2&lt;BR /&gt;1 487 2 1 662 1 1 194 2 1 230 1 1 526 2&lt;BR /&gt;1 122 2 1 129 1 1 74 1 1 122 1 1 86 2&lt;BR /&gt;1 466 2 1 192 1 1 109 1 1 55 1 1 1 2&lt;BR /&gt;1 107 2 1 110 1 1 332 2 2 2569 0 2 2506 0&lt;BR /&gt;2 . 0 2 2218 0 2 1857 0 2 1829 0 2 1562 0&lt;BR /&gt;2 1470 0 2 1363 0 2 1030 0 2 860 0 2 1258 0&lt;BR /&gt;2 2246 0 2 1870 0 2 1799 0 2 1709 0 2 1674 0&lt;BR /&gt;2 1568 0 2 1527 0 2 1324 0 2 957 0 2 932 0&lt;BR /&gt;2 847 0 2 848 0 2 1850 0 2 1843 0 2 1535 0&lt;BR /&gt;2 1447 0 2 . 0 2 414 2 2 2204 2 2 1063 2&lt;BR /&gt;2 481 2 2 105 2 2 641 2 2 390 2 2 288 2&lt;BR /&gt;2 421 1 2 79 2 2 748 1 2 486 1 2 48 2&lt;BR /&gt;2 272 1 2 1074 2 2 381 1 2 10 2 2 53 2&lt;BR /&gt;2 80 2 2 35 2 2 248 1 2 704 2 2 211 1&lt;BR /&gt;2 219 1 2 606 1 3 2640 0 3 2430 0 3 2252 0&lt;BR /&gt;3 2140 0 3 2133 0 3 1238 0 3 1631 0 3 2024 0&lt;BR /&gt;3 1345 0 3 1136 0 3 845 0 3 422 1 3 162 2&lt;BR /&gt;3 84 1 3 . 1 3 2 2 3 47 1 3 242 1&lt;BR /&gt;3 456 1 3 268 1 3 318 2 3 32 1 3 467 1&lt;BR /&gt;3 47 1 3 390 1 3 183 2 3 105 2 3 115 1&lt;BR /&gt;3 164 2 3 93 1 3 120 1 3 80 2 3 677 2&lt;BR /&gt;3 64 1 3 168 2 3 74 2 3 16 2 3 157 1&lt;BR /&gt;3 625 1 3 48 1 3 273 1 3 63 2 3 76 1&lt;BR /&gt;3 113 1 3 . 2&lt;BR /&gt;;&lt;BR /&gt;proc mi data=bmt out=bmt_mi seed=1;&lt;BR /&gt;class disease;&lt;BR /&gt;var disease status t;&lt;BR /&gt;fcs regression;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc phreg data=Bmt_mi;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class Disease (order=internal ref=first);&lt;BR /&gt;model T*Status(0)=Disease / eventcode=1;&lt;BR /&gt;ods output parameterestimates=parms2;&lt;BR /&gt;run;&lt;BR /&gt;proc mianalyze parms(classvar=classval)=parms2;&lt;BR /&gt;class disease;&lt;BR /&gt;modeleffects disease;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2020 14:14:08 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2020-08-14T14:14:08Z</dc:date>
    <item>
      <title>How to use PROC MIANALYZE with PROC PHREG for competing risks?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676625#M32428</link>
      <description>&lt;P&gt;I'm working with a multiple-imputed dataset, using a treatment and covariates to look at competing risks (I'm using 14.3). I'm having at least three issues: First, my outest= option in PROC PHREG isn't working (along with a bunch of other similar issues); Second, I have no idea what else to have the PHREG procedure output to use in MIANALYZE; Third, I don't know how to work MIANALYZE in this situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I'm trying to use for the PROC PHREG stuff:&lt;/P&gt;&lt;PRE&gt;proc phreg data=abx_compete outest=outest_phreg2;
   class antibx(ref='no abx') sex(ref='male') admretin(ref='no') &lt;BR /&gt;       capref(ref='yes') deepbr(ref='yes') grunt(ref='no') chstin(ref='no') 
       nasflaring(ref='no') hivresults(ref='no')/param=ref;
   model hours*event(0)= antibx &amp;amp;varlist /eventcode(cox)=1; 
   format antibx ab. event event. sex sex. hivresults yesno.
       admretin capref deepbr grunt chstin nasflaring yesno.;
   by _imputation_;
run;&lt;/PRE&gt;&lt;P&gt;It doesn't give me any errors, but it gives me this warning:&lt;/P&gt;&lt;PRE&gt;NOTE: The data set WORK.OUTEST_PHREG2 has 0 observations and 0 variables.
WARNING: Data set WORK.OUTEST_PHREG2 was not replaced because new file is incomplete.&lt;/PRE&gt;&lt;P&gt;Why isn't the OUTEST= option working?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is what I'm trying for the PROC MIANALYZE stuff:&lt;/P&gt;&lt;PRE&gt;proc mianalyze data=phreg_parmest2;
	modeleffects estimate;
	stderr stderr;
run;&lt;/PRE&gt;&lt;P&gt;But I'm not sure this will give me what I want, or if it'll even work once I get the PROC PHREG to work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been spending so much time on this and trying to do many different things that I'm not even sure what I'm doing anymore. I just know I am doing competing risks analysis and need to account for the fact that I'm using imputed data. Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 00:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676625#M32428</guid>
      <dc:creator>FriendJen</dc:creator>
      <dc:date>2020-08-14T00:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC MIANALYZE with PROC PHREG for competing risks?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676729#M32436</link>
      <description>&lt;P&gt;What does your PHREG output look like?&amp;nbsp; Are there any messages there that might explain what is happening?&amp;nbsp; What method of imputation did you use?&amp;nbsp; As all of your variables are categorical, I suspect that at least one is singular in value, with all observations having identical values for that variable.&amp;nbsp; That may influence the imputation, and could be causing the PHREG issue as well. One other possibility is that there is something unusual in your macro variable &amp;amp;varlist, but that is another thing that can be remedied by looking at the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676729#M32436</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-14T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC MIANALYZE with PROC PHREG for competing risks?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676737#M32437</link>
      <description>&lt;P&gt;With a CLASS statement I would suggest not using the OUTEST= data set, but an ODS OUTPUT ParameterEstimates= statement instead.&amp;nbsp; You should be able to do something similar to my example below.&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt;value DiseaseGroup 1='ALL'&lt;BR /&gt;2='AML-Low Risk'&lt;BR /&gt;3='AML-High Risk';&lt;/P&gt;
&lt;P&gt;data Bmt;&lt;BR /&gt;input Disease T Status @@;&lt;BR /&gt;label T='Disease-Free Survival in Days';&lt;BR /&gt;format Disease DiseaseGroup.;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2081 0 1 1602 0 1 1496 0 1 1462 0 1 1433 0&lt;BR /&gt;1 1377 0 1 1330 0 1 996 0 1 226 0 1 1199 0&lt;BR /&gt;1 1111 0 1 530 0 1 1182 0 1 1167 0 1 418 2&lt;BR /&gt;1 383 1 1 276 2 1 104 1 1 609 1 1 . 2&lt;BR /&gt;1 487 2 1 662 1 1 194 2 1 230 1 1 526 2&lt;BR /&gt;1 122 2 1 129 1 1 74 1 1 122 1 1 86 2&lt;BR /&gt;1 466 2 1 192 1 1 109 1 1 55 1 1 1 2&lt;BR /&gt;1 107 2 1 110 1 1 332 2 2 2569 0 2 2506 0&lt;BR /&gt;2 . 0 2 2218 0 2 1857 0 2 1829 0 2 1562 0&lt;BR /&gt;2 1470 0 2 1363 0 2 1030 0 2 860 0 2 1258 0&lt;BR /&gt;2 2246 0 2 1870 0 2 1799 0 2 1709 0 2 1674 0&lt;BR /&gt;2 1568 0 2 1527 0 2 1324 0 2 957 0 2 932 0&lt;BR /&gt;2 847 0 2 848 0 2 1850 0 2 1843 0 2 1535 0&lt;BR /&gt;2 1447 0 2 . 0 2 414 2 2 2204 2 2 1063 2&lt;BR /&gt;2 481 2 2 105 2 2 641 2 2 390 2 2 288 2&lt;BR /&gt;2 421 1 2 79 2 2 748 1 2 486 1 2 48 2&lt;BR /&gt;2 272 1 2 1074 2 2 381 1 2 10 2 2 53 2&lt;BR /&gt;2 80 2 2 35 2 2 248 1 2 704 2 2 211 1&lt;BR /&gt;2 219 1 2 606 1 3 2640 0 3 2430 0 3 2252 0&lt;BR /&gt;3 2140 0 3 2133 0 3 1238 0 3 1631 0 3 2024 0&lt;BR /&gt;3 1345 0 3 1136 0 3 845 0 3 422 1 3 162 2&lt;BR /&gt;3 84 1 3 . 1 3 2 2 3 47 1 3 242 1&lt;BR /&gt;3 456 1 3 268 1 3 318 2 3 32 1 3 467 1&lt;BR /&gt;3 47 1 3 390 1 3 183 2 3 105 2 3 115 1&lt;BR /&gt;3 164 2 3 93 1 3 120 1 3 80 2 3 677 2&lt;BR /&gt;3 64 1 3 168 2 3 74 2 3 16 2 3 157 1&lt;BR /&gt;3 625 1 3 48 1 3 273 1 3 63 2 3 76 1&lt;BR /&gt;3 113 1 3 . 2&lt;BR /&gt;;&lt;BR /&gt;proc mi data=bmt out=bmt_mi seed=1;&lt;BR /&gt;class disease;&lt;BR /&gt;var disease status t;&lt;BR /&gt;fcs regression;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc phreg data=Bmt_mi;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class Disease (order=internal ref=first);&lt;BR /&gt;model T*Status(0)=Disease / eventcode=1;&lt;BR /&gt;ods output parameterestimates=parms2;&lt;BR /&gt;run;&lt;BR /&gt;proc mianalyze parms(classvar=classval)=parms2;&lt;BR /&gt;class disease;&lt;BR /&gt;modeleffects disease;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676737#M32437</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-08-14T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC MIANALYZE with PROC PHREG for competing risks?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676805#M32440</link>
      <description>&lt;P&gt;There are no notes or messages in the results viewer, the log has this type of note for every imputation/event:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: The above message was for event=2.
NOTE: The above message was for the following BY group:
      Imputation Number=1&lt;/PRE&gt;&lt;P&gt;followed by&lt;/P&gt;&lt;PRE&gt;NOTE: The data set WORK.OUTEST_PHREG2 has 0 observations and 0 variables.
WARNING: Data set WORK.OUTEST_PHREG2 was not replaced because new file is incomplete.
NOTE: PROCEDURE PHREG used (Total process time):&lt;/PRE&gt;&lt;P&gt;I used&amp;nbsp;Multiple Imputation Missingness Pattern (MIMP) Method using a macro I got from Analysis of Observation Healthcare Data Using SAS and PROC MI. I had the imputations for the binary variables stay binary and the imputations for the continuous ones stay within the range. I've done stuff with PROC LOGISTIC and PROC CAUSALTRT and other stuff with the imputed data with no real issues, so I don't think it's my imputation method.&lt;/P&gt;&lt;P&gt;Not all of my variables are categorical, I have 8 binary, one categorical being treated as continuous, and 7 continuous variables. The &amp;amp;varlist contains all of them except for the outcomes and treatment variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 17:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676805#M32440</guid>
      <dc:creator>FriendJen</dc:creator>
      <dc:date>2020-08-14T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC MIANALYZE with PROC PHREG for competing risks?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676807#M32441</link>
      <description>I read your response and tried this:&lt;BR /&gt;&lt;BR /&gt;proc phreg data=abx_compete outest=outest_phreg2;&lt;BR /&gt;class antibx(ref='no abx') sex(ref='male') admretin(ref='no')&lt;BR /&gt;capref(ref='yes') deepbr(ref='yes') grunt(ref='no') chstin(ref='no')&lt;BR /&gt;nasflaring(ref='no') hivresults(ref='no')/param=ref;&lt;BR /&gt;model hours*event(0)= antibx &amp;amp;varlist /eventcode(cox)=1;&lt;BR /&gt;format antibx ab. event event. sex sex. hivresults yesno.&lt;BR /&gt;admretin capref deepbr grunt chstin nasflaring yesno.;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=parmest;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc mianalyze parms(classvar=classval)=parmest;&lt;BR /&gt;class antibx sex admretin capref deepbr grunt chstin nasflaring hivresults;&lt;BR /&gt;modeleffects antibx &amp;amp;varlist;&lt;BR /&gt;run;&lt;BR /&gt;And I got this error:&lt;BR /&gt;&lt;BR /&gt;ERROR: Variable ClassVal0 is not in the PARMS= data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Aug 2020 17:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-MIANALYZE-with-PROC-PHREG-for-competing-risks/m-p/676807#M32441</guid>
      <dc:creator>FriendJen</dc:creator>
      <dc:date>2020-08-14T17:26:34Z</dc:date>
    </item>
  </channel>
</rss>

