<?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: ERROR: (execution) Matrix has not been set to a value. in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771770#M5678</link>
    <description>&lt;P&gt;But the other condition is there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do idx=1 to m-1;&lt;/P&gt;&lt;P&gt;if (( X[idx] &amp;lt; T) &amp;amp; (X[idx+1] &amp;gt;= T)) then q=idx;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;if ( X[m] &amp;lt;= T) then q= m;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;with this I exhausted all the cases&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Oct 2021 18:33:54 GMT</pubDate>
    <dc:creator>Salah</dc:creator>
    <dc:date>2021-10-02T18:33:54Z</dc:date>
    <item>
      <title>ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771733#M5675</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep on getting the following "ERROR: (execution) Matrix has not been set to a value." my understanding is that "q" is undefined but it is well defined!!&lt;/P&gt;&lt;P&gt;seems that I don't understand what is the issue exactly? I need your help, please !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64314iA2C25B8B0C13D988/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 04:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771733#M5675</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-10-02T04:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771748#M5677</link>
      <description>&lt;P&gt;The log tells you the line that contains the error and what the error is. On Line 217&amp;nbsp; (which is&amp;nbsp;X_1_q=J(q,1,0);) the value q is undefined. The J function requires that the number of rows and columns be positive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that the loop that defines q only assigns a value if a certain logical condition is satisfied. Otherwise, q is not defined.&lt;/P&gt;
&lt;P&gt;DO idx=1 to m-1;&lt;BR /&gt;if (( X_p[idx] &amp;lt; T) &amp;amp; (X_p[idx+1] &amp;gt;= T)) then q=idx;&amp;nbsp; /* &amp;lt;== not defnd if condition false */&lt;BR /&gt;END;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 10:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771748#M5677</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-02T10:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771770#M5678</link>
      <description>&lt;P&gt;But the other condition is there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do idx=1 to m-1;&lt;/P&gt;&lt;P&gt;if (( X[idx] &amp;lt; T) &amp;amp; (X[idx+1] &amp;gt;= T)) then q=idx;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;if ( X[m] &amp;lt;= T) then q= m;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;with this I exhausted all the cases&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 18:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771770#M5678</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-10-02T18:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771771#M5679</link>
      <description>&lt;P&gt;No. For example, the situation T=0 and x={1, 2, 3} is not covered by your logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, if you are trying to find the interval in which T is contained, then consider using &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_013/imlug/imlug_langref_sect067.htm" target="_self"&gt;the BIN function&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;q = bin(T, x);&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 19:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771771#M5679</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-02T19:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771772#M5680</link>
      <description>&lt;P&gt;T in my case represents the terminal time (time to finish the study) while X represents the failure times (X1,...,Xn).&amp;nbsp; I am looking for&amp;nbsp; m failures. So either I get these m failures before the time T (that is why I have the condition T&amp;gt;= Xm) if not then T is between two times. That is why the ( Bin ) suggestion won't work in my case.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 19:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771772#M5680</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-10-02T19:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771808#M5681</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It's your program, so feel free to ignore my suggestions. But I'd like to point out that you can still use&amp;nbsp;&lt;/SPAN&gt;the BIN function:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;q = bin(T, x);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if q = . then q=m;&amp;nbsp; /* if T out of range, assign q manually */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anyway, good luck with your problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 10:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771808#M5681</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-03T10:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771811#M5682</link>
      <description>&lt;P&gt;I am so so grateful to your help.&amp;nbsp; I didn't know that I still can use (Bin) which is why I was trying to explain my problem in more detail.&lt;/P&gt;&lt;P&gt;Thank you again for your help. Iam definitely going to take your suggestion.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 11:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/771811#M5682</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-10-03T11:29:23Z</dc:date>
    </item>
  </channel>
</rss>

