<?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 Can I specify the seed for EACH replication in Proc surveyselect? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247041#M56279</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if there is a way to specify not only the initial seed number, but a seed for each replication when using replicate in PROC surveyselect?&lt;/P&gt;&lt;P&gt;The background of my question is, I&amp;nbsp;want to compare&amp;nbsp;two ways to do 2-stage-sampling in PROC survey select, one using replicate and one using loops. The latter results should be correct, so I have a benchmark. But as both procedures (hopefully) do the same things&amp;nbsp;in different order, I cannot compare them properly with only&amp;nbsp;the initial seed number. Without controlling for&amp;nbsp;subsequent draws, I cannot decide if different results stem from random influences or if there is some systematic difference (i.e. some mistake).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. I had problems in sending this message, so I hope there was not double posting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Birgit&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2016 18:04:46 GMT</pubDate>
    <dc:creator>birpech0</dc:creator>
    <dc:date>2016-01-30T18:04:46Z</dc:date>
    <item>
      <title>Can I specify the seed for EACH replication in Proc surveyselect?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247041#M56279</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if there is a way to specify not only the initial seed number, but a seed for each replication when using replicate in PROC surveyselect?&lt;/P&gt;&lt;P&gt;The background of my question is, I&amp;nbsp;want to compare&amp;nbsp;two ways to do 2-stage-sampling in PROC survey select, one using replicate and one using loops. The latter results should be correct, so I have a benchmark. But as both procedures (hopefully) do the same things&amp;nbsp;in different order, I cannot compare them properly with only&amp;nbsp;the initial seed number. Without controlling for&amp;nbsp;subsequent draws, I cannot decide if different results stem from random influences or if there is some systematic difference (i.e. some mistake).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. I had problems in sending this message, so I hope there was not double posting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Birgit&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 18:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247041#M56279</guid>
      <dc:creator>birpech0</dc:creator>
      <dc:date>2016-01-30T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I specify the seed for EACH replication in Proc surveyselect?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247063#M56281</link>
      <description>&lt;P&gt;You can get initial seeds for each stratum in stratified sampling but not for each replicate in replicated sampling. So, simulate the later with the former.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data c;
set sashelp.class;
do rep = 1 to 10;
    output;
    end;
run;

proc sort data=c; by rep; run;

proc surveyselect data=c out=samples seed=12345 outseed sampsize=12; 
strata rep;
run;
;

data _null_;
do until(last.rep);
    set samples; by rep;
    end;
call execute(catt(
    "proc surveyselect data=sashelp.class out=s sampsize=12 seed=",
    initialSeed,
    "; run; proc append base=sample2 data=s; run;"));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Samples (pseudo replicated samples) and Sample2 (samples from a loop) are the same.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 22:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247063#M56281</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-30T22:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I specify the seed for EACH replication in Proc surveyselect?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247097#M56282</link>
      <description>Thanks so much for your help! This is very useful and time-saving.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sun, 31 Jan 2016 08:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-I-specify-the-seed-for-EACH-replication-in-Proc-surveyselect/m-p/247097#M56282</guid>
      <dc:creator>birpech0</dc:creator>
      <dc:date>2016-01-31T08:36:39Z</dc:date>
    </item>
  </channel>
</rss>

