<?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: Return values while using Bootstrap in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890114#M6028</link>
    <description>&lt;P&gt;Thank you Rick for the explanation.&lt;/P&gt;&lt;P&gt;I tried to check each time I call the subroutine, the error occurred in the second time (inside my Bootstrap). I am so surprised as R is well defined since I used&amp;nbsp;&lt;/P&gt;&lt;P&gt;AdaptiveResX=Adaptive(n1,m1,K,theta1); (K gives the value for the R)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;AdaptiveResY=Adaptive(n2,m2,L,theta2); (L gives the value for the R)&lt;/P&gt;&lt;P&gt;K and L are well defined in the top of my code. That is where I am confused why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried &amp;nbsp;to define R inside the subroutine and call my subroutine using Adaptive(n1,m1,theta1) and&amp;nbsp;Adaptive(n1,m1,theta1). This fix the error, however, it doesn't give correct results and moreover, it will always force me to make the vectors K and L to be equal all the time and not for certain cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still don't know how to fix my problem&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>Sun, 20 Aug 2023 19:10:39 GMT</pubDate>
    <dc:creator>Salah</dc:creator>
    <dc:date>2023-08-20T19:10:39Z</dc:date>
    <item>
      <title>Return values while using Bootstrap</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890064#M6026</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting errors regarding variables in my module although these values are well defined. Sometimes SAS gives no error at all and some other times SAS doesn't let it go. It feels like the program is been hunted&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can any one help me please figure out where is the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 19:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890064#M6026</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2023-08-19T19:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Return values while using Bootstrap</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890068#M6027</link>
      <description>&lt;P&gt;The error message tells you that the problem is on Line 6753, which is the statement&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Sum = 1 + R[m];&lt;/STRONG&gt;&lt;BR /&gt;The error message also tells you that when the error occurs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;R is a (1 x 1) matrix with the value 3.&lt;/LI&gt;
&lt;LI&gt;m is a (1 x 1) matrix with the value 5.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The expression R[5] gives an error because R only has 1 element, not 5 or more. Thus, you get an error that states, "invalid subscript or subscript out of range."&lt;/P&gt;
&lt;P&gt;There are several places where you are calling the Adaptive module, and in one of those places you are calling it with invalid parameters.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 20:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890068#M6027</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-19T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return values while using Bootstrap</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890114#M6028</link>
      <description>&lt;P&gt;Thank you Rick for the explanation.&lt;/P&gt;&lt;P&gt;I tried to check each time I call the subroutine, the error occurred in the second time (inside my Bootstrap). I am so surprised as R is well defined since I used&amp;nbsp;&lt;/P&gt;&lt;P&gt;AdaptiveResX=Adaptive(n1,m1,K,theta1); (K gives the value for the R)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;AdaptiveResY=Adaptive(n2,m2,L,theta2); (L gives the value for the R)&lt;/P&gt;&lt;P&gt;K and L are well defined in the top of my code. That is where I am confused why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried &amp;nbsp;to define R inside the subroutine and call my subroutine using Adaptive(n1,m1,theta1) and&amp;nbsp;Adaptive(n1,m1,theta1). This fix the error, however, it doesn't give correct results and moreover, it will always force me to make the vectors K and L to be equal all the time and not for certain cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still don't know how to fix my problem&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>Sun, 20 Aug 2023 19:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890114#M6028</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2023-08-20T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Return values while using Bootstrap</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890115#M6029</link>
      <description>&lt;P&gt;I just tried another thing which is to copy and paste the values of K and L from the top of the program to just before I started the bootstrap ( Step 1)&lt;/P&gt;&lt;P&gt;and the error disappeared and in this case I can solve my problem. The issue for me is the following&lt;/P&gt;&lt;P&gt;(1) when I use different values for K and L I have to remember to change these values at two places&lt;/P&gt;&lt;P&gt;(2) I don't understand why can't insert the K and L once and use it everywhere in the code. After all they are Global values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 19:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890115#M6029</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2023-08-20T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Return values while using Bootstrap</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890132#M6030</link>
      <description>&lt;P&gt;You are redefining L at the bottom of the DO JJ =... loop.&lt;/P&gt;
&lt;P&gt;Don't do that. It replaces the previous dimensions of L.&lt;/P&gt;
&lt;P&gt;At the end of the loop, I suggest you use Lower and Upper as variable names instead of L and U.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 23:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890132#M6030</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-20T23:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Return values while using Bootstrap</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890169#M6031</link>
      <description>&lt;P&gt;Thank you so much Rick&lt;/P&gt;&lt;P&gt;I didn't pay attention to L (lower) and U (upper) that solved everything.&lt;/P&gt;&lt;P&gt;Can't thank you enough!!!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 11:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Return-values-while-using-Bootstrap/m-p/890169#M6031</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2023-08-21T11:08:51Z</dc:date>
    </item>
  </channel>
</rss>

