<?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 Proc IML help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-IML-help/m-p/59080#M16632</link>
    <description>Good day,&lt;BR /&gt;
&lt;BR /&gt;
I have been struggling for a while trying to get this program to work. It keeps on giving me the error: Error (Execution) Matrix has not been set to a value.&lt;BR /&gt;
&lt;BR /&gt;
Could someone be so kind as to point out where I am going wrong?&lt;BR /&gt;
&lt;BR /&gt;
This is the code:&lt;BR /&gt;
&lt;BR /&gt;
proc iml;&lt;BR /&gt;
&lt;BR /&gt;
n = 200;&lt;BR /&gt;
k = 3;&lt;BR /&gt;
g = 30;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
do it = 1 to g ;&lt;BR /&gt;
&lt;BR /&gt;
x = J(n,k,1) ;&lt;BR /&gt;
u = J(n,1,99999) ;&lt;BR /&gt;
y = J(n,1,99999) ;&lt;BR /&gt;
sd = J(n,1,0);&lt;BR /&gt;
rst = J(n,1,99999);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
do i= 1 to n;&lt;BR /&gt;
&lt;BR /&gt;
x2[i,2] = ranuni(sd)*100+100;&lt;BR /&gt;
x3[i,2] = ranuni(sd)*50+150;&lt;BR /&gt;
u[i,1]  = rannor(sd)*100;&lt;BR /&gt;
y[i,1]  = 100+3*x2[i,2]+15*x3[i,2]+u[i,1];&lt;BR /&gt;
x = J(n,1,1) || x2[i,2] || x3[i,2];&lt;BR /&gt;
end;&lt;BR /&gt;
bh = inv(x`*x)*x`*y;&lt;BR /&gt;
print bh;&lt;BR /&gt;
&lt;BR /&gt;
rst[it,] = bh`;&lt;BR /&gt;
&lt;BR /&gt;
print rst;&lt;BR /&gt;
end;&lt;BR /&gt;
quit;</description>
    <pubDate>Sun, 01 Aug 2010 21:26:14 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-01T21:26:14Z</dc:date>
    <item>
      <title>Proc IML help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-IML-help/m-p/59080#M16632</link>
      <description>Good day,&lt;BR /&gt;
&lt;BR /&gt;
I have been struggling for a while trying to get this program to work. It keeps on giving me the error: Error (Execution) Matrix has not been set to a value.&lt;BR /&gt;
&lt;BR /&gt;
Could someone be so kind as to point out where I am going wrong?&lt;BR /&gt;
&lt;BR /&gt;
This is the code:&lt;BR /&gt;
&lt;BR /&gt;
proc iml;&lt;BR /&gt;
&lt;BR /&gt;
n = 200;&lt;BR /&gt;
k = 3;&lt;BR /&gt;
g = 30;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
do it = 1 to g ;&lt;BR /&gt;
&lt;BR /&gt;
x = J(n,k,1) ;&lt;BR /&gt;
u = J(n,1,99999) ;&lt;BR /&gt;
y = J(n,1,99999) ;&lt;BR /&gt;
sd = J(n,1,0);&lt;BR /&gt;
rst = J(n,1,99999);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
do i= 1 to n;&lt;BR /&gt;
&lt;BR /&gt;
x2[i,2] = ranuni(sd)*100+100;&lt;BR /&gt;
x3[i,2] = ranuni(sd)*50+150;&lt;BR /&gt;
u[i,1]  = rannor(sd)*100;&lt;BR /&gt;
y[i,1]  = 100+3*x2[i,2]+15*x3[i,2]+u[i,1];&lt;BR /&gt;
x = J(n,1,1) || x2[i,2] || x3[i,2];&lt;BR /&gt;
end;&lt;BR /&gt;
bh = inv(x`*x)*x`*y;&lt;BR /&gt;
print bh;&lt;BR /&gt;
&lt;BR /&gt;
rst[it,] = bh`;&lt;BR /&gt;
&lt;BR /&gt;
print rst;&lt;BR /&gt;
end;&lt;BR /&gt;
quit;</description>
      <pubDate>Sun, 01 Aug 2010 21:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-IML-help/m-p/59080#M16632</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-01T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-IML-help/m-p/59081#M16633</link>
      <description>Suggest you re-post in the dedicated SAS/IML forum?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 02 Aug 2010 00:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-IML-help/m-p/59081#M16633</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-02T00:48:59Z</dc:date>
    </item>
  </channel>
</rss>

