<?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: generating data in statistic in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/generating-data-in-statistic/m-p/76644#M22223</link>
    <description>One way; not elegant, but effective.&lt;BR /&gt;
&lt;BR /&gt;
DATA new;&lt;BR /&gt;
a=3;  * your constant, for example;&lt;BR /&gt;
DO i=1 to 10;  *10 is max of index.&lt;BR /&gt;
  y=a*RANNOR() + RANNOR();&lt;BR /&gt;
  OUTPUT;&lt;BR /&gt;
  END;&lt;BR /&gt;
DROP i a;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
will generate a data set with one value of y for each value of the index.  If you want to keep x_i and b_i, you need to do the assignment outside of the assignment statement for y.&lt;BR /&gt;
&lt;BR /&gt;
Note that the two executions of RANNOR generate different sequences of normal deviates.  See documentation for details.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
    <pubDate>Mon, 09 Mar 2009 13:04:15 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-03-09T13:04:15Z</dc:date>
    <item>
      <title>generating data in statistic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/generating-data-in-statistic/m-p/76643#M22222</link>
      <description>how to generate data of the form y = ax_i + b_i&lt;BR /&gt;
i is an index&lt;BR /&gt;
x_i b_i and are independently distributed as N (0, 1)&lt;BR /&gt;
a&amp;gt; = 0 is a constant parameter</description>
      <pubDate>Sun, 08 Mar 2009 20:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/generating-data-in-statistic/m-p/76643#M22222</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-08T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: generating data in statistic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/generating-data-in-statistic/m-p/76644#M22223</link>
      <description>One way; not elegant, but effective.&lt;BR /&gt;
&lt;BR /&gt;
DATA new;&lt;BR /&gt;
a=3;  * your constant, for example;&lt;BR /&gt;
DO i=1 to 10;  *10 is max of index.&lt;BR /&gt;
  y=a*RANNOR() + RANNOR();&lt;BR /&gt;
  OUTPUT;&lt;BR /&gt;
  END;&lt;BR /&gt;
DROP i a;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
will generate a data set with one value of y for each value of the index.  If you want to keep x_i and b_i, you need to do the assignment outside of the assignment statement for y.&lt;BR /&gt;
&lt;BR /&gt;
Note that the two executions of RANNOR generate different sequences of normal deviates.  See documentation for details.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Mon, 09 Mar 2009 13:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/generating-data-in-statistic/m-p/76644#M22223</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-03-09T13:04:15Z</dc:date>
    </item>
  </channel>
</rss>

