<?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: proc surveyselect in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22089#M714</link>
    <description>I'm not sure but I don't think it is possible to output more than one sample data set from PROC SURVEYSELECT.  However you can do even better and create three samples in the same data set.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc surveyselect data=sashelp.class out=class3 rate=1 rep=3;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc surveyselect data=class3 out=sample3 n=(3,2,5);&lt;BR /&gt;
   strata rep:;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                                                                   Selection    Sampling&lt;BR /&gt;
                  Obs    Replicate     Name      Sex    Age    Height    Weight       Prob       Weight&lt;BR /&gt;
&lt;BR /&gt;
                    1        1        Alice       F      13     56.5       84.0     0.15789      6.33333&lt;BR /&gt;
                    2        1        Robert      M      12     64.8      128.0     0.15789      6.33333&lt;BR /&gt;
                    3        1        Ronald      M      15     67.0      133.0     0.15789      6.33333&lt;BR /&gt;
                    4        2        Louise      F      12     56.3       77.0     0.10526      9.50000&lt;BR /&gt;
                    5        2        Robert      M      12     64.8      128.0     0.10526      9.50000&lt;BR /&gt;
                    6        3        Henry       M      14     63.5      102.5     0.26316      3.80000&lt;BR /&gt;
                    7        3        Jeffrey     M      13     62.5       84.0     0.26316      3.80000&lt;BR /&gt;
                    8        3        Louise      F      12     56.3       77.0     0.26316      3.80000&lt;BR /&gt;
                    9        3        Robert      M      12     64.8      128.0     0.26316      3.80000&lt;BR /&gt;
                   10        3        Thomas      M      11     57.5       85.0     0.26316      3.80000&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 04 Mar 2011 15:56:38 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2011-03-04T15:56:38Z</dc:date>
    <item>
      <title>proc surveyselect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22088#M713</link>
      <description>i would like to output multiple sample datasets using proc surveyselect.&lt;BR /&gt;
&lt;BR /&gt;
That's to create 3 sample datasets with a 30,20,50 split from the original dataset.&lt;BR /&gt;
&lt;BR /&gt;
Thanks and regards,&lt;BR /&gt;
Thabiso</description>
      <pubDate>Fri, 04 Mar 2011 11:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22088#M713</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-04T11:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22089#M714</link>
      <description>I'm not sure but I don't think it is possible to output more than one sample data set from PROC SURVEYSELECT.  However you can do even better and create three samples in the same data set.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc surveyselect data=sashelp.class out=class3 rate=1 rep=3;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc surveyselect data=class3 out=sample3 n=(3,2,5);&lt;BR /&gt;
   strata rep:;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                                                                   Selection    Sampling&lt;BR /&gt;
                  Obs    Replicate     Name      Sex    Age    Height    Weight       Prob       Weight&lt;BR /&gt;
&lt;BR /&gt;
                    1        1        Alice       F      13     56.5       84.0     0.15789      6.33333&lt;BR /&gt;
                    2        1        Robert      M      12     64.8      128.0     0.15789      6.33333&lt;BR /&gt;
                    3        1        Ronald      M      15     67.0      133.0     0.15789      6.33333&lt;BR /&gt;
                    4        2        Louise      F      12     56.3       77.0     0.10526      9.50000&lt;BR /&gt;
                    5        2        Robert      M      12     64.8      128.0     0.10526      9.50000&lt;BR /&gt;
                    6        3        Henry       M      14     63.5      102.5     0.26316      3.80000&lt;BR /&gt;
                    7        3        Jeffrey     M      13     62.5       84.0     0.26316      3.80000&lt;BR /&gt;
                    8        3        Louise      F      12     56.3       77.0     0.26316      3.80000&lt;BR /&gt;
                    9        3        Robert      M      12     64.8      128.0     0.26316      3.80000&lt;BR /&gt;
                   10        3        Thomas      M      11     57.5       85.0     0.26316      3.80000&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 04 Mar 2011 15:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22089#M714</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-03-04T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22090#M715</link>
      <description>It base what method you want?&lt;BR /&gt;
&lt;BR /&gt;
Such as simple random sample.&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc surveyselect data=..  out=... method=srs sample_size=50;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 07 Mar 2011 01:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect/m-p/22090#M715</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-07T01:39:11Z</dc:date>
    </item>
  </channel>
</rss>

