<?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: Proc IML generation help in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-generation-help/m-p/59200#M369</link>
    <description>I've sorted it out. Thanks all the same!</description>
    <pubDate>Mon, 02 Aug 2010 08:10:02 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-02T08:10:02Z</dc:date>
    <item>
      <title>Proc IML generation help</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-generation-help/m-p/59199#M368</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. I am trying to generate a sample space from n observations and repeating it g times. My aim is to find the beta hat parameters and to place them into a results (rst) matrix.&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 = ranuni(sd)*100+100;&lt;BR /&gt;
x3 = ranuni(sd)*50+150;&lt;BR /&gt;
u  = rannor(sd)*100;&lt;BR /&gt;
y  = 100+3*x2+15*x3+u;&lt;BR /&gt;
x = J(n,1,1) || x2 || x3;&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[i,] = bh`;&lt;BR /&gt;
&lt;BR /&gt;
print rst;&lt;BR /&gt;
end;&lt;BR /&gt;
quit;

Message was edited by: Reytla</description>
      <pubDate>Mon, 02 Aug 2010 06:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-generation-help/m-p/59199#M368</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-02T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML generation help</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-generation-help/m-p/59200#M369</link>
      <description>I've sorted it out. Thanks all the same!</description>
      <pubDate>Mon, 02 Aug 2010 08:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-generation-help/m-p/59200#M369</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-02T08:10:02Z</dc:date>
    </item>
  </channel>
</rss>

