<?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: Ranuni( ) to  Unevenly  Split  File in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Ranuni-to-Unevenly-Split-File/m-p/74199#M21496</link>
    <description>I have resolved this issue.  &lt;BR /&gt;
Thanks.</description>
    <pubDate>Thu, 08 Apr 2010 21:42:31 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2010-04-08T21:42:31Z</dc:date>
    <item>
      <title>Ranuni( ) to  Unevenly  Split  File</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Ranuni-to-Unevenly-Split-File/m-p/74198#M21495</link>
      <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am using ranuni( ) to split my input file 50/50 into two letter_types: hybrid letter &amp;amp; example letter.  Then I use a field called 'LTV' to calculate the offer_pct for the output.  &lt;BR /&gt;
&lt;BR /&gt;
In the output, I want the 'hybrid' letter_type to have one more offer_pct (0%) than the 'example' letter_type.  When I use ranuni( ) this causes the 'hybrid' letter_type to have more than 50% of the original population.  &lt;BR /&gt;
&lt;BR /&gt;
How can I have one more 'offer_pct' entry in the 'hybrid' letter_type and still maintain a 50/50 split between the two letter_types? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This is how I want the output distribution to look:  &lt;BR /&gt;
&lt;BR /&gt;
offer_pct	letter_type	&lt;BR /&gt;
 0%	NonResponder hybrid letter 	&lt;BR /&gt;
 4%	NonResponder hybrid letter 	&lt;BR /&gt;
 8%	NonResponder hybrid letter  	&lt;BR /&gt;
18%	NonResponder hybrid letter 	&lt;BR /&gt;
 4%	NonResponder Example letter 	&lt;BR /&gt;
 8%	NonResponder Example letter  	&lt;BR /&gt;
18%	NonResponder Example letter  	&lt;BR /&gt;
&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
 r1 = ranuni(1234);&lt;BR /&gt;
 if ltv &amp;gt;= 120 then offer_pct='4%';&lt;BR /&gt;
 else if 110 &amp;lt;= ltv &amp;lt; 120 then offer_pct='8%';&lt;BR /&gt;
 else if 95 &amp;lt;= ltv &amp;lt; 110 then offer_pct='18%';&lt;BR /&gt;
 else offer_pct = '0%'; &lt;BR /&gt;
&lt;BR /&gt;
if r1 &amp;lt; .5 then letter_type = 'hybrid';&lt;BR /&gt;
else if r1 &amp;gt;= .5 then letter_type = 'example';</description>
      <pubDate>Wed, 07 Apr 2010 22:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Ranuni-to-Unevenly-Split-File/m-p/74198#M21495</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-04-07T22:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ranuni( ) to  Unevenly  Split  File</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Ranuni-to-Unevenly-Split-File/m-p/74199#M21496</link>
      <description>I have resolved this issue.  &lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 08 Apr 2010 21:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Ranuni-to-Unevenly-Split-File/m-p/74199#M21496</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-04-08T21:42:31Z</dc:date>
    </item>
  </channel>
</rss>

