<?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: Random Selection Using Proc Surveyselect in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130688#M35564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay.&lt;/P&gt;&lt;P&gt;The total population is just over 14,000 and I am using surveyselect to sample .471.&lt;/P&gt;&lt;P&gt;The same observations seem to come up pretty frequently. Almost as if surveyselect assigns a random number and then begins selection at the same place it did on the previous run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be sorting the data prior to selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyselect data = incoming out = outgoing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method = srs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rate = .00471;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id var1 var2 var3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2012 21:54:48 GMT</pubDate>
    <dc:creator>Jeff_DOC</dc:creator>
    <dc:date>2012-06-01T21:54:48Z</dc:date>
    <item>
      <title>Random Selection Using Proc Surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130686#M35562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to generate a random sample from a given population. I am using proc surveyselect. The code that generates the sample runs the exact same time each week. If I do not specify a seed option the computer clock is used but since the timing is so close each run the results have far too much verlap week to week. Each observation has several numeric variables and I was thinking of using one of those as a "seed" but I'm not sure if this is the best way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone have a bit of expert advice on a good way to move forward?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 23:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130686#M35562</guid>
      <dc:creator>Jeff_DOC</dc:creator>
      <dc:date>2012-05-31T23:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Random Selection Using Proc Surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130687#M35563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you make a random number in a datastep, store it as a macro variable, then use that as the seed?&lt;/P&gt;&lt;P&gt;Here's a good read on the random number generator:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p026ygl6toz3tgn14lt4iu6cl5bb.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p026ygl6toz3tgn14lt4iu6cl5bb.htm"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p026ygl6toz3tgn14lt4iu6cl5bb.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using method = srs?&amp;nbsp; Another option would be to try the other sampling methods...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 23:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130687#M35563</guid>
      <dc:creator>Ajay</dc:creator>
      <dc:date>2012-05-31T23:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Random Selection Using Proc Surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130688#M35564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay.&lt;/P&gt;&lt;P&gt;The total population is just over 14,000 and I am using surveyselect to sample .471.&lt;/P&gt;&lt;P&gt;The same observations seem to come up pretty frequently. Almost as if surveyselect assigns a random number and then begins selection at the same place it did on the previous run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be sorting the data prior to selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveyselect data = incoming out = outgoing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method = srs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rate = .00471;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id var1 var2 var3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 21:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Random-Selection-Using-Proc-Surveyselect/m-p/130688#M35564</guid>
      <dc:creator>Jeff_DOC</dc:creator>
      <dc:date>2012-06-01T21:54:48Z</dc:date>
    </item>
  </channel>
</rss>

