<?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: SAS error using %cif macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319515#M313405</link>
    <description>&lt;P&gt;If you have SAS 9.4 you can use PROC phreg for competing risks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 11:28:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-12-16T11:28:08Z</dc:date>
    <item>
      <title>SAS error using %cif macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319513#M313404</link>
      <description>&lt;P&gt;Iam trying to run a %cif macro but I am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: (execution) Invalid argument to function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : number of occurrences is 2&lt;/P&gt;&lt;P&gt;operation &amp;nbsp; &amp;nbsp; : EXP at line 1436 column 1&lt;/P&gt;&lt;P&gt;operands &amp;nbsp; &amp;nbsp; : _TEM1008&lt;/P&gt;&lt;P&gt;_TEM1008 &amp;nbsp;7851 rows &amp;nbsp; &amp;nbsp; &amp;nbsp;1 col &amp;nbsp; &amp;nbsp; &amp;nbsp;(numeric)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;statement : ASSIGN at line 1436 column 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have only been using SAS for a few months, so would be grateful is someone could point me in the right direction.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 11:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319513#M313404</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2016-12-16T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS error using %cif macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319515#M313405</link>
      <description>&lt;P&gt;If you have SAS 9.4 you can use PROC phreg for competing risks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 11:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319515#M313405</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-16T11:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS error using %cif macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319540#M313406</link>
      <description>&lt;P&gt;I recognize that error message as being the error that occurs in SAS/IML when you try to exponentiate a number that is greater than 709. See the second code snippet in the article &lt;A href="http://blogs.sas.com/content/iml/2012/01/23/constants-in-sas.html" target="_self"&gt;"Constants in SAS"&lt;/A&gt;&amp;nbsp;and the ERROR message that follow the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution, therefore, is to understand why your data and model are producing such large values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can think of two solutions, but both require familiarity with PROC IML.&amp;nbsp;&amp;nbsp;I am not familiar with the %CIF macro, but if you look in the source code you shouldl see a PROC IML step that contains a call to the EXP function. You can try to (1) identify the bad data values, or (2) use the method in the blog post to trap/handle the bad values, which would result in missing values in the model. Attempting (2) might result in further problems in the macro, so (1) seems like your best bet, if you are willing to edit the macro.&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319540#M313406</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-16T13:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS error using %cif macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319861#M313407</link>
      <description>&lt;P&gt;Dear Rick,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your reply. I understand what you are saying, but unfortunately I don't have the level of familiarity with proc IML to carry it out. Thank you none the less.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Dani&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 10:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319861#M313407</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2016-12-19T10:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS error using %cif macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319862#M313408</link>
      <description>Thank you, this worked well for my purposes.</description>
      <pubDate>Mon, 19 Dec 2016 10:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-using-cif-macro/m-p/319862#M313408</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2016-12-19T10:31:56Z</dc:date>
    </item>
  </channel>
</rss>

