<?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 random number generation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/random-number-generation/m-p/76300#M22119</link>
    <description>How can I generate 100 samples, each with 1000 random numbers from a uniform distribution(0,1)? &lt;BR /&gt;
What is the code to find the mean of each sample and the calculate the mean of means and stand. dev. of the means?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Wed, 21 Oct 2009 05:00:17 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-10-21T05:00:17Z</dc:date>
    <item>
      <title>random number generation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/random-number-generation/m-p/76300#M22119</link>
      <description>How can I generate 100 samples, each with 1000 random numbers from a uniform distribution(0,1)? &lt;BR /&gt;
What is the code to find the mean of each sample and the calculate the mean of means and stand. dev. of the means?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 21 Oct 2009 05:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/random-number-generation/m-p/76300#M22119</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-21T05:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: random number generation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/random-number-generation/m-p/76301#M22120</link>
      <description>ranuni(&lt;SEED&gt;)&lt;BR /&gt;
&lt;BR /&gt;
proc means, proc tabulate, ....&lt;BR /&gt;
&lt;BR /&gt;
I.e:&lt;BR /&gt;
data RandomNumbers;&lt;BR /&gt;
  do sample=1 to 100;&lt;BR /&gt;
    do n=1 to 1000;&lt;BR /&gt;
      RandomNumber=ranuni(0);&lt;BR /&gt;
      output;&lt;BR /&gt;
    end;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
And then use a procedure which allows you to calculate your values on different levels (like proc tabulate or proc means).&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=RandomNumbers;&lt;BR /&gt;
  class sample;&lt;BR /&gt;
  var RandomNumber;&lt;BR /&gt;
  table (sample all),RandomNumber*(mean std)*f=7.5;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
HTH &lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Patrick&lt;/SEED&gt;</description>
      <pubDate>Wed, 21 Oct 2009 06:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/random-number-generation/m-p/76301#M22120</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-10-21T06:42:18Z</dc:date>
    </item>
  </channel>
</rss>

