<?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: how to split 506 data into two different data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-split-506-data-into-two-different-data-set/m-p/414985#M101729</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data trainingData testData;
Set housing;

if _n_ &amp;lt;= 253 then output trainingData;
else output testData;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163849"&gt;@Sara73737&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I need to Split the data into two parts, and use the first half of 253 data points for building the model, and the second half of 253 data points for testing. The data point are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data" target="_blank"&gt;https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I ran the data in SAS and got the data point. I tried the following code to split them but no success:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data trainingData;&lt;BR /&gt;Set housing;&lt;BR /&gt;do i=1 to 253;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to SAS so I am not sure what is wrong there. Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2017 22:55:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-20T22:55:51Z</dc:date>
    <item>
      <title>how to split 506 data into two different data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-split-506-data-into-two-different-data-set/m-p/414980#M101726</link>
      <description>&lt;P&gt;I need to Split the data into two parts, and use the first half of 253 data points for building the model, and the second half of 253 data points for testing. The data point are here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data" target="_blank"&gt;https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I ran the data in SAS and got the data point. I tried the following code to split them but no success:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data trainingData;&lt;BR /&gt;Set housing;&lt;BR /&gt;do i=1 to 253;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS so I am not sure what is wrong there. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-split-506-data-into-two-different-data-set/m-p/414980#M101726</guid>
      <dc:creator>Sara73737</dc:creator>
      <dc:date>2017-11-20T22:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to split 506 data into two different data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-split-506-data-into-two-different-data-set/m-p/414985#M101729</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data trainingData testData;
Set housing;

if _n_ &amp;lt;= 253 then output trainingData;
else output testData;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163849"&gt;@Sara73737&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I need to Split the data into two parts, and use the first half of 253 data points for building the model, and the second half of 253 data points for testing. The data point are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data" target="_blank"&gt;https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I ran the data in SAS and got the data point. I tried the following code to split them but no success:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data trainingData;&lt;BR /&gt;Set housing;&lt;BR /&gt;do i=1 to 253;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to SAS so I am not sure what is wrong there. Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-split-506-data-into-two-different-data-set/m-p/414985#M101729</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-20T22:55:51Z</dc:date>
    </item>
  </channel>
</rss>

