<?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 a pseudo random data set from existing data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58714#M16489</link>
    <description>I knew this was covered in the Advanced Certification Prep Guide and after a small amount of searching I found this site that shows (and explains) the code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.stat.psu.edu/online/program/stat482/11random/03random_sampling_with.html" target="_blank"&gt;http://www.stat.psu.edu/online/program/stat482/11random/03random_sampling_with.html&lt;/A&gt;</description>
    <pubDate>Wed, 17 Feb 2010 18:10:31 GMT</pubDate>
    <dc:creator>RickM</dc:creator>
    <dc:date>2010-02-17T18:10:31Z</dc:date>
    <item>
      <title>Generating a pseudo random data set from existing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58713#M16488</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I want to create a pseudo random data set from existing data. Basically, I have a primary data set (call it Alpha) and I want to generate a new dataset (Beta) with a random selection of lines from Alpha. The logic of the process is something like this:&lt;BR /&gt;
&lt;BR /&gt;
1. Open Alpha.&lt;BR /&gt;
2. Generate a random number variable in Alpha.&lt;BR /&gt;
3. Select one line of data (row) from Alpha based on the random numbers.&lt;BR /&gt;
4. Append this random line of data to Beta.&lt;BR /&gt;
5. Repeat 1-4 in a loop for X repetitions to create Beta with X lines. (Random draw with possibility of repeated draws)&lt;BR /&gt;
&lt;BR /&gt;
Is there a quick way to write a macro or proc sql to do this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 17 Feb 2010 16:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58713#M16488</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-17T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a pseudo random data set from existing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58714#M16489</link>
      <description>I knew this was covered in the Advanced Certification Prep Guide and after a small amount of searching I found this site that shows (and explains) the code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.stat.psu.edu/online/program/stat482/11random/03random_sampling_with.html" target="_blank"&gt;http://www.stat.psu.edu/online/program/stat482/11random/03random_sampling_with.html&lt;/A&gt;</description>
      <pubDate>Wed, 17 Feb 2010 18:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58714#M16489</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-02-17T18:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a pseudo random data set from existing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58715#M16490</link>
      <description>In case you've got SAS\STAT: PROC SURVEYSELECT could do the job as well.</description>
      <pubDate>Wed, 17 Feb 2010 20:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Generating-a-pseudo-random-data-set-from-existing-data/m-p/58715#M16490</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-02-17T20:01:18Z</dc:date>
    </item>
  </channel>
</rss>

