<?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: Survey Selection in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339071#M17861</link>
    <description>75 female/75 males&lt;BR /&gt;75 age 20-30, 75 age 40-50&lt;BR /&gt;Not crossed with each other</description>
    <pubDate>Wed, 08 Mar 2017 01:24:48 GMT</pubDate>
    <dc:creator>Lmv323</dc:creator>
    <dc:date>2017-03-08T01:24:48Z</dc:date>
    <item>
      <title>Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339063#M17859</link>
      <description>Trying to generate a random sample of employee level data for a survey. Want to ensure I have a minimum of 75 people in each sub group like Gender, line of business, age band etc.</description>
      <pubDate>Wed, 08 Mar 2017 00:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339063#M17859</guid>
      <dc:creator>Lmv323</dc:creator>
      <dc:date>2017-03-08T00:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339067#M17860</link>
      <description>&lt;P&gt;In each group individually, or in total?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ie 75 females age 20-30&lt;/P&gt;
&lt;P&gt;or 75 females&lt;/P&gt;
&lt;P&gt;75 age 20-30&lt;/P&gt;
&lt;P&gt;75 males&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way, take a look at PROC SURVEYSELECT&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 01:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339067#M17860</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-08T01:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339071#M17861</link>
      <description>75 female/75 males&lt;BR /&gt;75 age 20-30, 75 age 40-50&lt;BR /&gt;Not crossed with each other</description>
      <pubDate>Wed, 08 Mar 2017 01:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339071#M17861</guid>
      <dc:creator>Lmv323</dc:creator>
      <dc:date>2017-03-08T01:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339072#M17862</link>
      <description>That's a mimum</description>
      <pubDate>Wed, 08 Mar 2017 01:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339072#M17862</guid>
      <dc:creator>Lmv323</dc:creator>
      <dc:date>2017-03-08T01:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339091#M17865</link>
      <description>&lt;PRE&gt;
Is it what you are looking for ?



proc sort data=sashelp.class out=class;
by sex;
run;
proc surveyselect data=class nmin=8 samprate=.1 out=want;
strata sex;
run;

&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Mar 2017 04:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339091#M17865</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-08T04:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339095#M17866</link>
      <description>&lt;P&gt;can the same employee be selected in a gender sample group and an age band sample group?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 04:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339095#M17866</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-03-08T04:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339099#M17867</link>
      <description>&lt;P&gt;Assuming the answer is yes, here is a method for choosing 2 students per sex and age group:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro select(dsn, id, crit, nbSel);
proc sort data=&amp;amp;dsn; by &amp;amp;crit; run;

proc sql;
create table strata_&amp;amp;crit as
select 
    &amp;amp;crit, 
    max(0, &amp;amp;nbSel - sum(selected)) as SampleSize
from &amp;amp;dsn
group by &amp;amp;crit;
quit;

proc surveyselect data=&amp;amp;dsn out=sample_&amp;amp;crit sampsize=strata_&amp;amp;crit;
where not selected;
strata &amp;amp;crit;
run;

proc sql;
update &amp;amp;dsn 
set selected = 1 
where &amp;amp;id in (select &amp;amp;id from sample_&amp;amp;crit);
quit;
%mend;

data class;
set sashelp.class;
selected = 0; /*Add this variable to the dataset */
run;


%select(class, name, sex, 2);
%select(class, name, age, 2);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Mar 2017 05:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339099#M17867</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-03-08T05:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339174#M17869</link>
      <description>I do not want to limit myself to just a select number from each group. I want a sample that is representative of the employee base through the lense of line of business, gender, age, tenure, etc. just looking to ensure I have a minimum number at the least in each group to be able to confidently say women would prefer this over men. Or age band 20-30 is more likely to use the offering we are surveying on</description>
      <pubDate>Wed, 08 Mar 2017 11:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339174#M17869</guid>
      <dc:creator>Lmv323</dc:creator>
      <dc:date>2017-03-08T11:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339248#M17871</link>
      <description>&lt;P&gt;Is 75 from a power analysis?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339248#M17871</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-08T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339272#M17873</link>
      <description>It's based on a response rate assumption. Want to be left with enough sample to see difference in my groups for likert responses differences to be significant</description>
      <pubDate>Wed, 08 Mar 2017 15:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339272#M17873</guid>
      <dc:creator>Lmv323</dc:creator>
      <dc:date>2017-03-08T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339285#M17874</link>
      <description>&lt;P&gt;What is your population size?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally if you want something representative of a population as a whole then a simple random sample without constraints of sufficient size would work. But if your desired sizes of specific characteristics require disproportionate sampling then you may have to go to stratification on one or more of the characteristics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this were my project I would likely start with a random sample of around 200 and examine the characteristics of those selected (Proc freq anyone). If that works, we're golden. If I'm close to the desired sizes in the characteristics then increase the sample size a bit.&lt;/P&gt;
&lt;P&gt;If one of the characteristics doesn't get close at all then stratification on that variable and with multiple constraints the strata size would need to be larger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339285#M17874</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-08T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Survey Selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339489#M17881</link>
      <description>I ultimately needed to use a combination of solutions! Thank you everyone for your advice!</description>
      <pubDate>Thu, 09 Mar 2017 00:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survey-Selection/m-p/339489#M17881</guid>
      <dc:creator>Lmv323</dc:creator>
      <dc:date>2017-03-09T00:45:01Z</dc:date>
    </item>
  </channel>
</rss>

