<?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 Generate Random variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-Random-variable/m-p/35643#M1494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to generate random var in a matrix (20*30) form having mean=3 and standard dev=1.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 10:03:58 GMT</pubDate>
    <dc:creator>HM3</dc:creator>
    <dc:date>2012-01-23T10:03:58Z</dc:date>
    <item>
      <title>Generate Random variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-Random-variable/m-p/35643#M1494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to generate random var in a matrix (20*30) form having mean=3 and standard dev=1.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 10:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generate-Random-variable/m-p/35643#M1494</guid>
      <dc:creator>HM3</dc:creator>
      <dc:date>2012-01-23T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Generate Random variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-Random-variable/m-p/35644#M1495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't specify the distribution, but I assume you want normally distributed values from N(3,1)? Here is a PROC IML solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;x = j(20, 30);&amp;nbsp; /* allocate 20x30 matrix */&lt;/P&gt;&lt;P&gt;call randseed(123); /* seed random seed */&lt;/P&gt;&lt;P&gt;call randgen(x, "Normal", 3, 1); /* N(3,1) */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more about generating random samples, see &lt;A href="http://blogs.sas.com/content/iml/2010/09/22/efficient-sampling/"&gt;http://blogs.sas.com/content/iml/2010/09/22/efficient-sampling/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you one day want a sample from a multivariate normal distribution, see &lt;A href="http://blogs.sas.com/content/iml/2011/01/12/sampling-from-the-multivariate-normal-distribution/"&gt;http://blogs.sas.com/content/iml/2011/01/12/sampling-from-the-multivariate-normal-distribution/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 12:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generate-Random-variable/m-p/35644#M1495</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-01-23T12:51:28Z</dc:date>
    </item>
  </channel>
</rss>

