<?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 weighted by exposure in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Surveyselect-weighted-by-exposure/m-p/600462#M16600</link>
    <description>&lt;P&gt;That is what PPS does with a Size variable, if a value of Dollar is larger it is more likely to be selected.&lt;/P&gt;
&lt;P&gt;If you want the proportion of dollar values to approximate the data as a whole then look at SRS or SYS&amp;nbsp;methods&amp;nbsp;instead. If you have a wide range of values for you dollar amounts I might suggest the SYS method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 6 groups (2*3) and selecting only 40 records you may have to be flexible about how close you want those proportions to match.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 17:14:55 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-10-30T17:14:55Z</dc:date>
    <item>
      <title>Proc Surveyselect weighted by exposure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Surveyselect-weighted-by-exposure/m-p/600441#M16596</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have this simple problem that i am trying to solve with the proc surveyselect but I'm not able to obtain the desired results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with 3 variables: Country (takes only two values EU, NON EU) Segment (takes 3 values Large,Medium,Small) and Dollar (amount of exposure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset has 10000 lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to extract a random sample of 40 lines that has the same (or close to the same) distribution of the original sample in terms of Dollar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=dataset; by Country Segment;&lt;/P&gt;&lt;P&gt;proc surveyselect data =&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;dataset&lt;/SPAN&gt; out = samp1 method = pps sampsize=40 seed = 9876 ;&lt;BR /&gt;strata &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Country Segment&lt;/SPAN&gt;;&lt;BR /&gt;size Dollar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a sample of 40 records but the proportion of country and segment weighted by dollar are not the same at all with respect to the original sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where am i wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Surveyselect-weighted-by-exposure/m-p/600441#M16596</guid>
      <dc:creator>AndreaBov</dc:creator>
      <dc:date>2019-10-30T16:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyselect weighted by exposure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Surveyselect-weighted-by-exposure/m-p/600462#M16600</link>
      <description>&lt;P&gt;That is what PPS does with a Size variable, if a value of Dollar is larger it is more likely to be selected.&lt;/P&gt;
&lt;P&gt;If you want the proportion of dollar values to approximate the data as a whole then look at SRS or SYS&amp;nbsp;methods&amp;nbsp;instead. If you have a wide range of values for you dollar amounts I might suggest the SYS method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 6 groups (2*3) and selecting only 40 records you may have to be flexible about how close you want those proportions to match.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Surveyselect-weighted-by-exposure/m-p/600462#M16600</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-30T17:14:55Z</dc:date>
    </item>
  </channel>
</rss>

