<?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: Random sampling - new programmer in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Random-sampling-new-programmer/m-p/133451#M6965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very specific criteria, so you may have to use more than one method.&amp;nbsp; I would suggest reading up on PROC SURVEYSELECT which is used for extracting samples.&amp;nbsp; You can create a dataset that contains the relevant variable names and how many of each should be returned. this is then referenced in the SAMPSIZE= option in PROC SURVEYSELECT.&amp;nbsp; There are many other options you can specify to control the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this points you in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 May 2013 11:36:11 GMT</pubDate>
    <dc:creator>Keith</dc:creator>
    <dc:date>2013-05-10T11:36:11Z</dc:date>
    <item>
      <title>Random sampling - new programmer</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-sampling-new-programmer/m-p/133450#M6964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to sas but need to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my data (this is just dummy data, the full set contains 25 million obs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;phone number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;HV Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Region&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Age&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Port in &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;pmt method&lt;/TH&gt;&lt;TD&gt;spend bucket&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0832122256&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High Value&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Gauteng&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Prepaid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;R120 to R155&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0833132424&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low Value&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Gauteng&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;26&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;postpaid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;R0 to R50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0834532675&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Very high Value&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;KZN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;yes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;postpaid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;R180 to R230&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0854217863&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mid Value&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Limpopo&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;no&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prepaid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;R260 to R300&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a random sample which consists of the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;100 people should reflect a prepaid pmt method&lt;/LI&gt;&lt;LI&gt;25 people should be high or very high value customers (should be split between prepaid and postpaid pmt method)&lt;/LI&gt;&lt;LI&gt;the region should comprise of 40% gauteng and the rest shoul be equally divided&lt;/LI&gt;&lt;LI&gt;the age should be 26 and older&lt;/LI&gt;&lt;LI&gt;30 of the people should have ported in (yes)&lt;/LI&gt;&lt;LI&gt;spend should be above R120&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;any idea as to how to go about tackling this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 09:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-sampling-new-programmer/m-p/133450#M6964</guid>
      <dc:creator>Amoryn</dc:creator>
      <dc:date>2013-05-10T09:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Random sampling - new programmer</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-sampling-new-programmer/m-p/133451#M6965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very specific criteria, so you may have to use more than one method.&amp;nbsp; I would suggest reading up on PROC SURVEYSELECT which is used for extracting samples.&amp;nbsp; You can create a dataset that contains the relevant variable names and how many of each should be returned. this is then referenced in the SAMPSIZE= option in PROC SURVEYSELECT.&amp;nbsp; There are many other options you can specify to control the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this points you in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 11:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-sampling-new-programmer/m-p/133451#M6965</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2013-05-10T11:36:11Z</dc:date>
    </item>
  </channel>
</rss>

