<?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: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158075#M1448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. Yes you are right, &lt;/P&gt;&lt;P&gt;This just give me one answer and I need a result for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code below gives me and answer. How ever, just as you said , it is not giving me the answer for each row.&amp;nbsp; How do I loop it from 1 to 4 so that each row has an answer. ?&lt;/P&gt;&lt;P&gt;Data sim;&lt;/P&gt;&lt;P&gt;Input A B;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 7&lt;/P&gt;&lt;P&gt;3 10&lt;/P&gt;&lt;P&gt;4 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;use sim;&lt;/P&gt;&lt;P&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P&gt;close;&lt;/P&gt;&lt;P&gt; A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P&gt; n = nrow(DM);&lt;/P&gt;&lt;P&gt;start Func(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#cdf("Normal", x) );&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;call quad(answer, "Func", A&lt;I&gt; || B&lt;I&gt;,);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P&gt;append;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 18:57:53 GMT</pubDate>
    <dc:creator>desireatem</dc:creator>
    <dc:date>2014-09-24T18:57:53Z</dc:date>
    <item>
      <title>NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158071#M1444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, I wish to ask if any could help correct this error:&lt;/P&gt;&lt;P&gt;NOTE: Module FUNC defined.&lt;/P&gt;&lt;P&gt;47&amp;nbsp;&amp;nbsp; interval = {A, B};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;48&amp;nbsp;&amp;nbsp; call quad(answer, "Func", interval);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; param must be numeric&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: (execution) Character argument should be numeric&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;This is data set and code:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Data sim;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Input A B;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;cards;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;1&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;2&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;3&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;4&amp;nbsp;&amp;nbsp; 12&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc iml;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;use sim;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;close;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;n = nrow(DM);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;start Func(x);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#cdf("Normal", x) );&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;finish;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;interval = {A, B};&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;call quad(answer, "Func", interval);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;append;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 13:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158071#M1444</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-24T13:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158072#M1445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to compute four integrals, use the i_th row of DM as the interval for the i_th computation:&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call quad(answer, func, DM[i,]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 14:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158072#M1445</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-24T14:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158073#M1446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick, My interval is A, B. The lower limit is A and upper limit is B, , the code does not specified the upper and lower limit. I have to pick the correct limit .&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; call quad(answer, func, DM[i,]);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;end;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I modified my code as such:&lt;/P&gt;&lt;P&gt;Data sim;&lt;/P&gt;&lt;P&gt;Input A B;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 7&lt;/P&gt;&lt;P&gt;3 10&lt;/P&gt;&lt;P&gt;4 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;use sim;&lt;/P&gt;&lt;P&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P&gt;close;&lt;/P&gt;&lt;P&gt;A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P&gt;n = nrow(DM);&lt;/P&gt;&lt;P&gt;start Func(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#cdf("Normal", x) );&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;call quad(answer, "Func", DM[i,]);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P&gt;append;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement : CALL at line 8281 column 1&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrices do not conform to the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;operation : QUAD at line 8307 column 1&lt;/P&gt;&lt;P&gt;operands&amp;nbsp; : *LIT1007, _TEM1001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LIT1007&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (character, size 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Func&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_TEM1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement : CALL at line 8307 column 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158073#M1446</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-24T18:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158074#M1447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your error is that DM[1,2] is a scalar, whereas QUAD is expecting a vector with two elements, as in my code.&amp;nbsp; You could also use A&lt;I&gt; || B&lt;I&gt;, if you prefer.&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you also will want to accumulate the results inside the loop. Currently you are just overwriting ANSWER four times, and the data set is only writing the answer to the last integration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158074#M1447</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-24T18:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158075#M1448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. Yes you are right, &lt;/P&gt;&lt;P&gt;This just give me one answer and I need a result for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code below gives me and answer. How ever, just as you said , it is not giving me the answer for each row.&amp;nbsp; How do I loop it from 1 to 4 so that each row has an answer. ?&lt;/P&gt;&lt;P&gt;Data sim;&lt;/P&gt;&lt;P&gt;Input A B;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 7&lt;/P&gt;&lt;P&gt;3 10&lt;/P&gt;&lt;P&gt;4 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;use sim;&lt;/P&gt;&lt;P&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P&gt;close;&lt;/P&gt;&lt;P&gt; A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P&gt; n = nrow(DM);&lt;/P&gt;&lt;P&gt;start Func(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#cdf("Normal", x) );&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;call quad(answer, "Func", A&lt;I&gt; || B&lt;I&gt;,);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P&gt;append;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158075#M1448</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-24T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158076#M1449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to allocate a vector outside of the loop and fill it within the loop, as described in this article: &lt;A href="http://blogs.sas.com/content/iml/2011/06/20/pre-allocate-arrays-to-improve-efficiency/" title="http://blogs.sas.com/content/iml/2011/06/20/pre-allocate-arrays-to-improve-efficiency/"&gt; Pre-allocate arrays to improve efficiency - The DO Loop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;This and other efficiency tips that you've asked about are found in Chapter 2 of &lt;EM&gt;&lt;A href="http://support.sas.com/publishing/authors/wicklin.html"&gt;Statistical Programming with SAS/IML Software&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answer = j(nrow(A),1);&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(A);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call quad(result, "Func", A&lt;I&gt;||B&lt;I&gt;);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; answer&lt;I&gt; = result;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 19:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158076#M1449</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-24T19:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: NUMERICAL INTEGRATION: ERROR: (execution) Character argument should be numeric</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158077#M1450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data sim;&lt;/P&gt;&lt;P&gt;Input A B;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 7&lt;/P&gt;&lt;P&gt;3 10&lt;/P&gt;&lt;P&gt;4 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;use sim;&lt;/P&gt;&lt;P&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P&gt;close;&lt;/P&gt;&lt;P&gt; A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P&gt; n = nrow(DM);&lt;/P&gt;&lt;P&gt;start Func(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#cdf("Normal", x) );&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;answer = j(nrow(DM),1);&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;call quad(result, "Func", A&lt;I&gt; || B&lt;I&gt;,);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;answer&lt;I&gt; = result;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P&gt;append;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 19:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NUMERICAL-INTEGRATION-ERROR-execution-Character-argument-should/m-p/158077#M1450</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-24T19:23:18Z</dc:date>
    </item>
  </channel>
</rss>

