<?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 Spliting data into 2 randomly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345549#M79501</link>
    <description>&lt;P&gt;I have a dataset where I have to build a credit score model for bad customers. It is a logistic regression model. I want to build the model and thereafter test it. Can anybody tell me the sas code to split the data.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 21:17:49 GMT</pubDate>
    <dc:creator>jinc</dc:creator>
    <dc:date>2017-03-29T21:17:49Z</dc:date>
    <item>
      <title>Spliting data into 2 randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345549#M79501</link>
      <description>&lt;P&gt;I have a dataset where I have to build a credit score model for bad customers. It is a logistic regression model. I want to build the model and thereafter test it. Can anybody tell me the sas code to split the data.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 21:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345549#M79501</guid>
      <dc:creator>jinc</dc:creator>
      <dc:date>2017-03-29T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spliting data into 2 randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345555#M79502</link>
      <description>&lt;P&gt;If you just want a 50/50 split then you could use something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data build validate;
  set sashelp.prdsale;
  if uniform(0) le .5 then output build;
  else output validate;
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 21:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345555#M79502</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-29T21:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spliting data into 2 randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345566#M79506</link>
      <description>&lt;P&gt;PROC SURVEYSELECT is typically used to generate random samples. If you want to do bootstrapping or any type of cross validation, I highly recommend the paper by David Cassell, Don't be loopy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/183-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/183-2007.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Spliting-data-into-2-randomly/m-p/345566#M79506</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-29T22:15:07Z</dc:date>
    </item>
  </channel>
</rss>

