<?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: Cause specific hazard model Using Phreg in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700857#M214542</link>
    <description>&lt;P&gt;Sorry to hear that the problem persists. I've just checked the "What's new" documentation of various SAS/STAT versions and, yes, it's plausible that your too old SAS release is the reason:&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_whatsnew_sect024.htm" target="_blank" rel="noopener"&gt;SAS/STAT 13.1&lt;/A&gt; the EVENTCODE= option was introduced, but only since &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_whatsnew_sect020.htm&amp;amp;locale=de" target="_blank" rel="noopener"&gt;SAS/STAT 14.3&lt;/A&gt; the syntax&amp;nbsp;EVENTCODE(COX)= has been valid. This would explain the error messages &lt;EM&gt;if&lt;/EM&gt; the mark in the log (see my earlier post) is under the open parenthesis after the keyword "EVENTCODE" because SAS releases using SAS/STAT 13.1 - 14.2 would expect the "=" sign there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To confirm this, I'd run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to display the SAS/STAT version information in the log (as well as the Base SAS maintenance release), e.g.&lt;/P&gt;
&lt;PRE&gt;For Base SAS Software ...
   Custom version information: 9.4_M5
   Image version information: 9.04.01M5P090617
For SAS/STAT ...
   Custom version information: 14.3&lt;/PRE&gt;
&lt;P&gt;Your release is probably &amp;lt;"M&lt;STRONG&gt;5&lt;/STRONG&gt;" and the SAS/STAT version &amp;lt;14.3. I upgraded to release 9.4M5, which includes SAS/STAT 14.3, in 2018 (was easy for my single-user system). The upgrade made various newer features available and was worth the effort. See last week's post&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Ask-the-Expert/Best-Practices-for-Upgrading-to-the-Latest-Version-of-SAS-9-Q/ta-p/700546" target="_blank" rel="noopener"&gt;Best Practices for Upgrading to the Latest Version of SAS®9&lt;/A&gt; for most recent recommendations.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2020 08:43:07 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-11-23T08:43:07Z</dc:date>
    <item>
      <title>Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700757#M214492</link>
      <description>&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitAlignCenter dijitContentPaneSingleChild dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane"&gt;&lt;DIV class="tabs dijitBorderContainer dijitContainer dojoDndTarget sasStudioTabsParentContainer dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasStudioTabsTabContainer sasStudioTabsTabContainerVertical sasStudioTabsTop dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer sasStudioTabsTabContainerChild dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dojoDndTarget dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasSuiteTabs dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="sasSource"&gt;Hello everyone!&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;I am really confused about why this context keeps resulting in errors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Can anybody tell me what is wrong with this code?&lt;BR /&gt;I'm trying to do cox-regression with competing risk factors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;proc phreg data=a.new_status;&lt;BR /&gt;class case(ref='0') sex(ref='1')/param=ref;&lt;BR /&gt;model duration*status(0, 2) = case age sex cvd diabe hyp dysli pd hl tbi avg_income/ EVENTCODE(cox)= 1 ;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Keep showing errors&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73-322 Expecting an '='&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;200-322&amp;nbsp;&lt;SPAN&gt;Symbol is not recognized.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;SPAN&gt;Plz, anybody help me!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 22 Nov 2020 16:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700757#M214492</guid>
      <dc:creator>alberto93</dc:creator>
      <dc:date>2020-11-22T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700764#M214495</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293992"&gt;@alberto93&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code looks good and it works on my computer with suitable input data. The error messages indicate that the code in your SAS session contained some invalid character(s) which were not recognized. But these characters didn't survive the copy/paste process into the message box. So, chances are that by copying the code back from your post into SAS it will be ready to run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't help: The original log message should contain a mark (e.g. a dash with the error numbers 73 and 200) where an invalid character was found.&amp;nbsp;I would retype the marked characters (most likely equals signs or blanks) to overwrite them with valid characters. They were probably copied from a PDF, Word or other file format using "fancy" characters the SAS compiler doesn't like.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 17:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700764#M214495</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-22T17:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700805#M214512</link>
      <description>&lt;P&gt;First, Thank you so much for your kind answer.&lt;/P&gt;&lt;P&gt;Tried everything you told but it doesn't work...&lt;/P&gt;&lt;P&gt;Is there any chance that the cause is my SAS program being an older version?&lt;/P&gt;&lt;P&gt;I performed the code with SAS Enterprise guide 7.1 and SAS 9.4.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 01:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700805#M214512</guid>
      <dc:creator>alberto93</dc:creator>
      <dc:date>2020-11-23T01:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700857#M214542</link>
      <description>&lt;P&gt;Sorry to hear that the problem persists. I've just checked the "What's new" documentation of various SAS/STAT versions and, yes, it's plausible that your too old SAS release is the reason:&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_whatsnew_sect024.htm" target="_blank" rel="noopener"&gt;SAS/STAT 13.1&lt;/A&gt; the EVENTCODE= option was introduced, but only since &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_whatsnew_sect020.htm&amp;amp;locale=de" target="_blank" rel="noopener"&gt;SAS/STAT 14.3&lt;/A&gt; the syntax&amp;nbsp;EVENTCODE(COX)= has been valid. This would explain the error messages &lt;EM&gt;if&lt;/EM&gt; the mark in the log (see my earlier post) is under the open parenthesis after the keyword "EVENTCODE" because SAS releases using SAS/STAT 13.1 - 14.2 would expect the "=" sign there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To confirm this, I'd run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to display the SAS/STAT version information in the log (as well as the Base SAS maintenance release), e.g.&lt;/P&gt;
&lt;PRE&gt;For Base SAS Software ...
   Custom version information: 9.4_M5
   Image version information: 9.04.01M5P090617
For SAS/STAT ...
   Custom version information: 14.3&lt;/PRE&gt;
&lt;P&gt;Your release is probably &amp;lt;"M&lt;STRONG&gt;5&lt;/STRONG&gt;" and the SAS/STAT version &amp;lt;14.3. I upgraded to release 9.4M5, which includes SAS/STAT 14.3, in 2018 (was easy for my single-user system). The upgrade made various newer features available and was worth the effort. See last week's post&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Ask-the-Expert/Best-Practices-for-Upgrading-to-the-Latest-Version-of-SAS-9-Q/ta-p/700546" target="_blank" rel="noopener"&gt;Best Practices for Upgrading to the Latest Version of SAS®9&lt;/A&gt; for most recent recommendations.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 08:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700857#M214542</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-23T08:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700881#M214547</link>
      <description>status(0, 2)&lt;BR /&gt;&lt;BR /&gt;should be&lt;BR /&gt; status(0)   &lt;BR /&gt;??</description>
      <pubDate>Mon, 23 Nov 2020 11:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/700881#M214547</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-23T11:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/701778#M214919</link>
      <description>Upgraded my sas version and changed to what you told! It worked! Thanks a lot!!</description>
      <pubDate>Thu, 26 Nov 2020 09:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/701778#M214919</guid>
      <dc:creator>alberto93</dc:creator>
      <dc:date>2020-11-26T09:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cause specific hazard model Using Phreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/701779#M214920</link>
      <description>Thankyou for your kind answer! I upgraded my sas and it worked! Thank you so much!</description>
      <pubDate>Thu, 26 Nov 2020 09:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cause-specific-hazard-model-Using-Phreg/m-p/701779#M214920</guid>
      <dc:creator>alberto93</dc:creator>
      <dc:date>2020-11-26T09:19:01Z</dc:date>
    </item>
  </channel>
</rss>

