<?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: More Sampling in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/More-Sampling/m-p/181701#M34631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try somthing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have (where=(PURPOSE='PUR'));&lt;/P&gt;&lt;P&gt;call streaminit(12);&lt;/P&gt;&lt;P&gt;if rand("Uniform")&amp;lt;=0.8 then total+upb;&lt;/P&gt;&lt;P&gt;if total&amp;gt;50000 then stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 20:31:41 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-07-16T20:31:41Z</dc:date>
    <item>
      <title>More Sampling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/More-Sampling/m-p/181700#M34630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following code applied to the attached file which I need to modify such that I draw sample of N loans from the loan population labelled 'PUR' until the sum of the UPBs reaches 50000.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any thoughts are welcome. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=LoanPopulation &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;var Loan_ID;&lt;/P&gt;&lt;P&gt;output=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;proc surveyselect data=loan_population3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; method=srs n=(.8*&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/SPAN&gt;) out=PUR_sample;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where purpcd='PUR';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 19:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/More-Sampling/m-p/181700#M34630</guid>
      <dc:creator>maroulator</dc:creator>
      <dc:date>2014-07-16T19:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: More Sampling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/More-Sampling/m-p/181701#M34631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try somthing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have (where=(PURPOSE='PUR'));&lt;/P&gt;&lt;P&gt;call streaminit(12);&lt;/P&gt;&lt;P&gt;if rand("Uniform")&amp;lt;=0.8 then total+upb;&lt;/P&gt;&lt;P&gt;if total&amp;gt;50000 then stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 20:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/More-Sampling/m-p/181701#M34631</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-16T20:31:41Z</dc:date>
    </item>
  </channel>
</rss>

