<?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 SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311993#M67588</link>
    <description>&lt;PRE&gt;
You are looking for variables selection method.
Check SELECT= option of MODEL statement.


&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Nov 2016 14:25:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-11-16T14:25:26Z</dc:date>
    <item>
      <title>proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311975#M67578</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the proc survey select to randomly pick cases based upon the criteria that the sum of the variable income should not exceed 0.7 of the (sum of income of selection/ income for total sample)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 13:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311975#M67578</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2016-11-16T13:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311993#M67588</link>
      <description>&lt;PRE&gt;
You are looking for variables selection method.
Check SELECT= option of MODEL statement.


&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311993#M67588</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-16T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311995#M67589</link>
      <description>&lt;PRE&gt;
Sorry. Ignore my last post. wrong post at wrong place.

Can you post an example to explain what you require ?

&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/311995#M67589</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-16T14:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312031#M67597</link>
      <description>&lt;P&gt;Please provide the version of SAS you are using. There may be options to help with this but they may be version dependent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Precalculate what 0.7 of the income for the total sample would be: Example: Suppose the &amp;nbsp;Total income in your set is 1000000, available from many procs in different ways: means, summary, &amp;nbsp;univariate or&amp;nbsp;freq to name a few.&lt;/P&gt;
&lt;P&gt;Then the target you are looking for is I think 0.7 * 1000000 or 700000.&lt;/P&gt;
&lt;P&gt;Use 700000 as the SAMPSIZE with your Income variable as the Size variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 16:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312031#M67597</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-16T16:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312092#M67630</link>
      <description>&lt;P&gt;The Size variable in proc SurveySelect is for PPS sampling. PPS means Probability (of selection) Proportional to Size. Use a Size variable only if sampling with PPS.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 19:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312092#M67630</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-11-16T19:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312095#M67632</link>
      <description>&lt;P&gt;Do you want a fixed sample size with at most 70% of incomes, or do you want to randomly pick sampling units until the income reaches 70% of incomes?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 19:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312095#M67632</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-11-16T19:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312236#M67693</link>
      <description>&lt;P&gt;The latter!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 07:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312236#M67693</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2016-11-17T07:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312261#M67704</link>
      <description>&lt;P&gt;How about this one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select sum(air)*0.7 into : sum
 from sashelp.air;
quit;

data have;
 set sashelp.air;
 rand=rand('uniform');
run;
proc sort data=have;
 by rand;
run;
data want;
 set have;
 temp+air;
 if temp lt &amp;amp;sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2016 10:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-surveyselect/m-p/312261#M67704</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-17T10:01:08Z</dc:date>
    </item>
  </channel>
</rss>

