<?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: How do I adjust the sample size in PROC SURVEYSELECT? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480522#M24995</link>
    <description>Hi Eric:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You should be using the SAMPRATE= option if you are going to supply it with a sampling rate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 23 Jul 2018 16:20:43 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2018-07-23T16:20:43Z</dc:date>
    <item>
      <title>How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480505#M24991</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new user of PROC SURVEYSELECT in Base SAS 9.4 and I need to&amp;nbsp;set the sample size to be 10% of the total population size.&amp;nbsp; I don't need to stratify the population.&amp;nbsp; How would I set the samp size option to execute PROC SURVEYSELECT on only that 10%?&amp;nbsp; Would it be as simple as the sampsize option below?&amp;nbsp; Thank you in advance for your help - I really appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=other_list out=elos1 &lt;BR /&gt;sampsize=0.1 &lt;BR /&gt;seed=&amp;amp;seed.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480505#M24991</guid>
      <dc:creator>esvenson</dc:creator>
      <dc:date>2018-07-23T16:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480515#M24992</link>
      <description>What happens when you run it? That should tell you if it's right or not. Or are you getting unexpected behaviour?</description>
      <pubDate>Mon, 23 Jul 2018 16:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480515#M24992</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-23T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480517#M24993</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;I don't know if I should be using sampsize=0.1 or samprate=0.1.&amp;nbsp; Can you advise which one will yield a 10% sample of the population?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480517#M24993</guid>
      <dc:creator>esvenson</dc:creator>
      <dc:date>2018-07-23T16:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480519#M24994</link>
      <description>&lt;P&gt;SAMPSIZE generates an error that it needs an integer, so SAMPRATE will be what you need. And 0.1 is 10%.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480519#M24994</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-23T16:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480522#M24995</link>
      <description>Hi Eric:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You should be using the SAMPRATE= option if you are going to supply it with a sampling rate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480522#M24995</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-07-23T16:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480623#M25003</link>
      <description>&lt;P&gt;Is there also a way to have multiple constraints in a PROC SURVEY SELECT like this?&amp;nbsp; I have a list of factors that all have to be &amp;gt;0 for to meet the criteria for inclusion in the sample population.&amp;nbsp; I can't find an example of this anywhere.&amp;nbsp; Thank you again for all your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=other_list (where = (factor4&amp;gt;0) and (factor5&amp;gt;0)) out=test  samprate=0.1  seed=&amp;amp;seed.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 20:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480623#M25003</guid>
      <dc:creator>esvenson</dc:creator>
      <dc:date>2018-07-23T20:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480624#M25004</link>
      <description>The WHERE statement is what I would suggest or pre-filtering the data would also work.</description>
      <pubDate>Mon, 23 Jul 2018 20:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480624#M25004</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-23T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480625#M25005</link>
      <description>&lt;P&gt;Reeza,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this but it was an invalid use of the AND operator.&amp;nbsp; Is there a way to do a list of multiple constraints in a PROC SURVEYSELECT step so that ALL factors that must be &amp;gt;0 are included?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=other_list (where = (factor4&amp;gt;0) and (factor5&amp;gt;0)) out=test  samprate=0.1  seed=&amp;amp;seed.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 20:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480625#M25005</guid>
      <dc:creator>esvenson</dc:creator>
      <dc:date>2018-07-23T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I adjust the sample size in PROC SURVEYSELECT?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480645#M25007</link>
      <description>&lt;LI-CODE lang="sas"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;factor4&lt;SPAN class="token operator"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt; and factor5&lt;SPAN class="token operator"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You had brackets too early, closing the WHERE condition, I think. Try the above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately you're stuck listing the factors but you can check if the max is 0 and that should be enough?&lt;/P&gt;
&lt;P&gt;Untested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;(where = (not max(factor1, factor2, factor3, ... factor9) = 0));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 21:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-adjust-the-sample-size-in-PROC-SURVEYSELECT/m-p/480645#M25007</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-23T21:50:44Z</dc:date>
    </item>
  </channel>
</rss>

