<?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: Execution Matrices has not been set a value in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352563#M3446</link>
    <description>&lt;P&gt;Out of curiosity how am I supposed to have any idea of either what the error or your code looks like now?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post your modified code AND log with errors.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Apr 2017 03:37:35 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-04-23T03:37:35Z</dc:date>
    <item>
      <title>Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352519#M3440</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to run this and I got this for the 3 matrices created "(Execution) Matrices has not been set a value";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;*part a;&lt;BR /&gt;n = 10;&lt;BR /&gt;x1 = j(10,1,1);&lt;BR /&gt;x2 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};&lt;BR /&gt;x = x1 || x2;&lt;BR /&gt;M = 1000;&lt;BR /&gt;B10 = j(M,1,0);&lt;BR /&gt;T10 = j(M,1,0);&lt;BR /&gt;title "Answer to part a";&lt;BR /&gt;print x1 x2 x M B10 T10;&lt;/P&gt;&lt;P&gt;*part b;&lt;BR /&gt;u = j(n,1,0);&lt;BR /&gt;Btot = {1, 2};&lt;BR /&gt;Var = {2};&lt;/P&gt;&lt;P&gt;*part c;&lt;BR /&gt;do i = 1 to M;&lt;BR /&gt;call randgen(u,"normal",0,Var);&lt;BR /&gt;y = (x*BTot) + u;&lt;BR /&gt;&lt;BR /&gt;b = inv((x`) * x) * (x`) * y;&lt;BR /&gt;e = y - (x*b);&lt;BR /&gt;b2 = b[2,1];&lt;BR /&gt;B10[i,] = b2;&lt;/P&gt;&lt;P&gt;B2 = Btot[2,1];&lt;BR /&gt;se2 = ((e`) * e) * (1/(n - 2));&lt;BR /&gt;varb2 = s2 * b2;&lt;BR /&gt;seb2 = sqrt(varb2);&lt;BR /&gt;t2 = (b2 - B2) * (1/seb2);&lt;BR /&gt;T10[i,] = t2;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;*part d;&lt;BR /&gt;n = 100;&lt;BR /&gt;x_1 = j(100,1,1);&lt;BR /&gt;x_2 = repeat({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 10);&lt;BR /&gt;x = x_1 || x_2;&lt;BR /&gt;M = 1000;&lt;BR /&gt;B100 = j(M,1,0);&lt;BR /&gt;T100 = j(M,1,0);&lt;BR /&gt;u = j(n,1,0);&lt;BR /&gt;Btot = {1, 2};&lt;BR /&gt;S = {2};&lt;/P&gt;&lt;P&gt;do i = 1 to M;&lt;BR /&gt;call randgen(u,"normal",0,S);&lt;BR /&gt;y = (x*B_pop) + u;&lt;BR /&gt;&lt;BR /&gt;b = inv((x`) * x) * (x`) * y;&lt;BR /&gt;e = y - (x*b);&lt;BR /&gt;b2 = b[2,1];&lt;BR /&gt;B100[i,] = b2;&lt;/P&gt;&lt;P&gt;B2 = Btot[2,1];&lt;BR /&gt;se2 = ((e`) * e) * (1/(n - 2));&lt;BR /&gt;varb2 = se2 * b2;&lt;BR /&gt;seb2 = sqrt(varb2);&lt;BR /&gt;t2 = (b2 - B2) * (1/seb2);&lt;BR /&gt;T100[i,] = t2;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;*part e;&lt;BR /&gt;n = 1000;&lt;BR /&gt;x1 = j(1000,1,1);&lt;BR /&gt;x2 = repeat({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 100);&lt;BR /&gt;x = x1 || x2;&lt;BR /&gt;M = 1000;&lt;BR /&gt;B1000 = j(M,1,0);&lt;BR /&gt;T1000 = j(M,1,0);&lt;BR /&gt;u = j(n,1,0);&lt;BR /&gt;Btot = {1, 2};&lt;BR /&gt;Var = {2};&lt;/P&gt;&lt;P&gt;do i = 1 to M;&lt;BR /&gt;call randgen(u,"normal",0,S);&lt;BR /&gt;y = (x*Btot) + u;&lt;BR /&gt;&lt;BR /&gt;b = inv((x`) * x) * (x`) * y;&lt;BR /&gt;e = y - (x*b);&lt;BR /&gt;b2 = b[2,1];&lt;BR /&gt;B1000[i,] = b2;&lt;/P&gt;&lt;P&gt;B2 = Btot[2,1];&lt;BR /&gt;se2 = ((e`) * e) * (1/(n - 2));&lt;BR /&gt;varb2 = se2 * b2;&lt;BR /&gt;seb2 = sqrt(varb2);&lt;BR /&gt;t2 = (b2 - B2) * (1/seb2);&lt;BR /&gt;T1000[i,] = t_2;&lt;BR /&gt;end;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 00:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352519#M3440</guid>
      <dc:creator>Mike7</dc:creator>
      <dc:date>2017-04-23T00:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352526#M3441</link>
      <description>&lt;P&gt;Can you narrow it down to which part of your code is generating the error? And including the log is helpful as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140223"&gt;@Mike7&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying to run this and I got this for the 3 matrices created "(Execution) Matrices has not been set a value";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc iml;&lt;BR /&gt;*part a;&lt;BR /&gt;n = 10;&lt;BR /&gt;x1 = j(10,1,1);&lt;BR /&gt;x2 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};&lt;BR /&gt;x = x1 || x2;&lt;BR /&gt;M = 1000;&lt;BR /&gt;B10 = j(M,1,0);&lt;BR /&gt;T10 = j(M,1,0);&lt;BR /&gt;title "Answer to part a";&lt;BR /&gt;print x1 x2 x M B10 T10;&lt;/P&gt;
&lt;P&gt;*part b;&lt;BR /&gt;u = j(n,1,0);&lt;BR /&gt;Btot = {1, 2};&lt;BR /&gt;Var = {2};&lt;/P&gt;
&lt;P&gt;*part c;&lt;BR /&gt;do i = 1 to M;&lt;BR /&gt;call randgen(u,"normal",0,Var);&lt;BR /&gt;y = (x*BTot) + u;&lt;BR /&gt;&lt;BR /&gt;b = inv((x`) * x) * (x`) * y;&lt;BR /&gt;e = y - (x*b);&lt;BR /&gt;b2 = b[2,1];&lt;BR /&gt;B10[i,] = b2;&lt;/P&gt;
&lt;P&gt;B2 = Btot[2,1];&lt;BR /&gt;se2 = ((e`) * e) * (1/(n - 2));&lt;BR /&gt;varb2 = s2 * b2;&lt;BR /&gt;seb2 = sqrt(varb2);&lt;BR /&gt;t2 = (b2 - B2) * (1/seb2);&lt;BR /&gt;T10[i,] = t2;&lt;BR /&gt;end;&lt;/P&gt;
&lt;P&gt;*part d;&lt;BR /&gt;n = 100;&lt;BR /&gt;x_1 = j(100,1,1);&lt;BR /&gt;x_2 = repeat({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 10);&lt;BR /&gt;x = x_1 || x_2;&lt;BR /&gt;M = 1000;&lt;BR /&gt;B100 = j(M,1,0);&lt;BR /&gt;T100 = j(M,1,0);&lt;BR /&gt;u = j(n,1,0);&lt;BR /&gt;Btot = {1, 2};&lt;BR /&gt;S = {2};&lt;/P&gt;
&lt;P&gt;do i = 1 to M;&lt;BR /&gt;call randgen(u,"normal",0,S);&lt;BR /&gt;y = (x*B_pop) + u;&lt;BR /&gt;&lt;BR /&gt;b = inv((x`) * x) * (x`) * y;&lt;BR /&gt;e = y - (x*b);&lt;BR /&gt;b2 = b[2,1];&lt;BR /&gt;B100[i,] = b2;&lt;/P&gt;
&lt;P&gt;B2 = Btot[2,1];&lt;BR /&gt;se2 = ((e`) * e) * (1/(n - 2));&lt;BR /&gt;varb2 = se2 * b2;&lt;BR /&gt;seb2 = sqrt(varb2);&lt;BR /&gt;t2 = (b2 - B2) * (1/seb2);&lt;BR /&gt;T100[i,] = t2;&lt;BR /&gt;end;&lt;/P&gt;
&lt;P&gt;*part e;&lt;BR /&gt;n = 1000;&lt;BR /&gt;x1 = j(1000,1,1);&lt;BR /&gt;x2 = repeat({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 100);&lt;BR /&gt;x = x1 || x2;&lt;BR /&gt;M = 1000;&lt;BR /&gt;B1000 = j(M,1,0);&lt;BR /&gt;T1000 = j(M,1,0);&lt;BR /&gt;u = j(n,1,0);&lt;BR /&gt;Btot = {1, 2};&lt;BR /&gt;Var = {2};&lt;/P&gt;
&lt;P&gt;do i = 1 to M;&lt;BR /&gt;call randgen(u,"normal",0,S);&lt;BR /&gt;y = (x*Btot) + u;&lt;BR /&gt;&lt;BR /&gt;b = inv((x`) * x) * (x`) * y;&lt;BR /&gt;e = y - (x*b);&lt;BR /&gt;b2 = b[2,1];&lt;BR /&gt;B1000[i,] = b2;&lt;/P&gt;
&lt;P&gt;B2 = Btot[2,1];&lt;BR /&gt;se2 = ((e`) * e) * (1/(n - 2));&lt;BR /&gt;varb2 = se2 * b2;&lt;BR /&gt;seb2 = sqrt(varb2);&lt;BR /&gt;t2 = (b2 - B2) * (1/seb2);&lt;BR /&gt;T1000[i,] = t_2;&lt;BR /&gt;end;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 01:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352526#M3441</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-23T01:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352528#M3442</link>
      <description>&lt;P&gt;its generating errors in the three parts, when trying to create T10, T100, and T1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its telling me that the matric has not been set a value; however I tried setting a value in the beginning but did not work&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 01:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352528#M3442</guid>
      <dc:creator>Mike7</dc:creator>
      <dc:date>2017-04-23T01:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352552#M3443</link>
      <description>&lt;P&gt;That's not what it's saying. Read the error thoroughly and fix what it indicates is the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI it's a typo.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 02:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352552#M3443</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-23T02:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352556#M3444</link>
      <description>&lt;P&gt;I fixed the Typo, but still getting errors for T10 T100 T1000&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 02:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352556#M3444</guid>
      <dc:creator>Mike7</dc:creator>
      <dc:date>2017-04-23T02:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352561#M3445</link>
      <description>&lt;P&gt;i fixed the typo but i am having problems with another error&lt;/P&gt;&lt;P&gt;(execution) Invalid subscript or subscript out of range&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 03:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352561#M3445</guid>
      <dc:creator>Mike7</dc:creator>
      <dc:date>2017-04-23T03:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352563#M3446</link>
      <description>&lt;P&gt;Out of curiosity how am I supposed to have any idea of either what the error or your code looks like now?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post your modified code AND log with errors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 03:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352563#M3446</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-23T03:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352564#M3447</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;83         varb2 = s2 * b2;
 84         seb2 = sqrt(varb2);
 85         t2 = (b2 - B2) * (1/seb2);
 86         T10[i,] = t2;
 87         end;
 ERROR: (execution) Matrix has not been set to a value.
 
  operation : * at line 83 column 12
  operands  : s2, b2
 
 s2      0 row       0 col     (type ?, size 0)&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;According to LOG, it said you did not define s2 before . I think s2 should be se2 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 03:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352564#M3447</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-23T03:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352565#M3448</link>
      <description>&lt;P&gt;Also you do not define&amp;nbsp;B_pop &amp;nbsp;,are supposed to be Btot&lt;/P&gt;
&lt;P&gt;t_2 is supposed to be t2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc iml;
*part a;
n = 10;
x1 = j(10,1,1);
x2 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
x = x1 || x2;
M = 1000;
B10 = j(M,1,0);
T10 = j(M,1,0);
title "Answer to part a";
print x1 x2 x M B10 T10;
*part b;
u = j(n,1,0);
Btot = {1, 2};
Var = {2};
*part c;
do i = 1 to M;
call randgen(u,"normal",0,Var);
y = (x*BTot) + u;

b = inv((x`) * x) * (x`) * y;
e = y - (x*b);
b2 = b[2,1];
B10[i,] = b2;
B2 = Btot[2,1];
se2 = ((e`) * e) * (1/(n - 2));
varb2 = se2 * b2;
seb2 = sqrt(varb2);
t2 = (b2 - B2) * (1/seb2);
T10[i,] = t2;
end;
*part d;
n = 100;
x_1 = j(100,1,1);
x_2 = repeat({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 10);
x = x_1 || x_2;
M = 1000;
B100 = j(M,1,0);
T100 = j(M,1,0);
u = j(n,1,0);
Btot = {1, 2};
S = {2};
do i = 1 to M;
call randgen(u,"normal",0,S);
y = (x*Btot) + u;

b = inv((x`) * x) * (x`) * y;
e = y - (x*b);
b2 = b[2,1];
B100[i,] = b2;
B2 = Btot[2,1];
se2 = ((e`) * e) * (1/(n - 2));
varb2 = se2 * b2;
seb2 = sqrt(varb2);
t2 = (b2 - B2) * (1/seb2);
T100[i,] = t2;
end;
*part e;
n = 1000;
x1 = j(1000,1,1);
x2 = repeat({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 100);
x = x1 || x2;
M = 1000;
B1000 = j(M,1,0);
T1000 = j(M,1,0);
u = j(n,1,0);
Btot = {1, 2};
Var = {2};
do i = 1 to M;
call randgen(u,"normal",0,S);
y = (x*Btot) + u;

b = inv((x`) * x) * (x`) * y;
e = y - (x*b);
b2 = b[2,1];
B1000[i,] = b2;
B2 = Btot[2,1];
se2 = ((e`) * e) * (1/(n - 2));
varb2 = se2 * b2;
seb2 = sqrt(varb2);
t2 = (b2 - B2) * (1/seb2);
T1000[i,] = t2;
end;
quit;&lt;/CODE&gt;&lt;/PRE&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, 23 Apr 2017 03:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352565#M3448</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-23T03:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Matrices has not been set a value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352566#M3449</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;and here I was trying to let 'Mike' do his own homework &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 03:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Execution-Matrices-has-not-been-set-a-value/m-p/352566#M3449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-23T03:49:12Z</dc:date>
    </item>
  </channel>
</rss>

