<?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: Samling procedures in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636210#M188986</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274244"&gt;@Biniie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CLUSTER statement (alias: SAMPLINGUNIT)&lt;/A&gt; is ideal for your purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=workshiftdata
method=srs samprate=10
seed=2718 out=subsample;
cluster company;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(Just replace &lt;FONT face="courier new,courier"&gt;workshiftdata&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;subsample&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;company&lt;/FONT&gt; by your input dataset, output dataset and variable names, respectively.)&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 12:54:26 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-03-31T12:54:26Z</dc:date>
    <item>
      <title>Samling procedures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636152#M188946</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a big dataset from which I want a specific subsample.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset contains workshift data from employees from approx 100 different companies, which have different number of employees. The dataset can include&amp;nbsp;selveral observations/datalines for each person.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a subsample that consist of all the observations for 10% of the 100 companies (and not 10% of the number of observations/datalines), where the 10% of the companies is randomly chosen. (I'm aware that this means, that the subsample could be of different size depending on which companies, that are chosen).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone who has a suggest how to do this?&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>Tue, 31 Mar 2020 10:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636152#M188946</guid>
      <dc:creator>Biniie</dc:creator>
      <dc:date>2020-03-31T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Samling procedures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636158#M188951</link>
      <description>&lt;P&gt;PROC SURVEYSELECT with the STRATA statement can do this.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 10:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636158#M188951</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-31T10:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Samling procedures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636210#M188986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274244"&gt;@Biniie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CLUSTER statement (alias: SAMPLINGUNIT)&lt;/A&gt; is ideal for your purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=workshiftdata
method=srs samprate=10
seed=2718 out=subsample;
cluster company;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(Just replace &lt;FONT face="courier new,courier"&gt;workshiftdata&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;subsample&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;company&lt;/FONT&gt; by your input dataset, output dataset and variable names, respectively.)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Samling-procedures/m-p/636210#M188986</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-31T12:54:26Z</dc:date>
    </item>
  </channel>
</rss>

