<?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: Oversampling with PROC SURVEYSELECT in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400587#M20884</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class ;
run;
proc sort data=have;by sex;run;
proc surveyselect data=have out=want method=urs sampsize=(100 100)  outhits;
strata sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Oct 2017 13:42:42 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-10-03T13:42:42Z</dc:date>
    <item>
      <title>Oversampling with PROC SURVEYSELECT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400248#M20866</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try to use the oversampling technique with PROC SURVEYSELECT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample of 8500 obersvations with 1% of 0 and 99% of 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I achieved undersampling by droppings 1 but now i want to inflate the percentage of 0 with oversampling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i tried with PROC SURVEYSELECT to have a random sample of, for example, 12.5% of 0 and 87.5% of 1 with the URS method but he can't do a random sample greater with a number of 0 greater than in the original sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, i got like 99 times 1 and 1 time 0. What i want is to have like still 99 times 1 but 10 times 1 in my new sample, is it impossible with PROC SURVEYSELECT ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you by advance.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 13:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400248#M20866</guid>
      <dc:creator>degdeg</dc:creator>
      <dc:date>2017-10-02T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oversampling with PROC SURVEYSELECT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400585#M20883</link>
      <description>&lt;P&gt;Can you use TWO proc surveyselect to sample for these two level 0,1&lt;/P&gt;
&lt;P&gt;and after that combine them together by&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set a b;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or try this one.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class ;
 size=1;
run;
proc sort data=have;by sex;run;
proc surveyselect data=have out=want method=pps_wr sampsize=(100 100)  outhits;
strata sex;
size size;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 13:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400585#M20883</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-03T13:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Oversampling with PROC SURVEYSELECT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400587#M20884</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class ;
run;
proc sort data=have;by sex;run;
proc surveyselect data=have out=want method=urs sampsize=(100 100)  outhits;
strata sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 13:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oversampling-with-PROC-SURVEYSELECT/m-p/400587#M20884</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-03T13:42:42Z</dc:date>
    </item>
  </channel>
</rss>

