<?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 output partition? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/308879#M66351</link>
    <description>&lt;P&gt;Ok...I tried to run it to check, but it keeps crashing in SAS Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you generate an OUTPUT data set, does it contain a _ROLE_ variable that denotes what each observation was categorized?&lt;/P&gt;
&lt;P&gt;You can generate the OUTPUT data set using something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
   output out=dataset_role;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;If you have partitioned the input data by using a PARTITION statement, then a character variable _ROLE_ is included in the output data set. For each observation the value of _ROLE_ is as follows:&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;_ROLE_ Observation&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;TEST Testing&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;TRAIN Training&amp;nbsp;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;VALIDATE Validation&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 02 Nov 2016 21:00:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-02T21:00:33Z</dc:date>
    <item>
      <title>how to output partition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/308862#M66348</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have following code running in SAS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc adaptivereg data=imported_excel &lt;BR /&gt; SEED = 123 &lt;BR /&gt; PLOTS = ALL&lt;BR /&gt; details=bases;&lt;BR /&gt; partition fraction(validate=0.25 test=0.25);&lt;BR /&gt; model Y = A B C;&lt;BR /&gt; RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there anyway I can output the partition dataset, test,validate, respectively? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/308862#M66348</guid>
      <dc:creator>viva0521</dc:creator>
      <dc:date>2016-11-02T19:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to output partition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/308879#M66351</link>
      <description>&lt;P&gt;Ok...I tried to run it to check, but it keeps crashing in SAS Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you generate an OUTPUT data set, does it contain a _ROLE_ variable that denotes what each observation was categorized?&lt;/P&gt;
&lt;P&gt;You can generate the OUTPUT data set using something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
   output out=dataset_role;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;If you have partitioned the input data by using a PARTITION statement, then a character variable _ROLE_ is included in the output data set. For each observation the value of _ROLE_ is as follows:&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;_ROLE_ Observation&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;TEST Testing&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;TRAIN Training&amp;nbsp;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;VALIDATE Validation&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 02 Nov 2016 21:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/308879#M66351</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-02T21:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to output partition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/309428#M66548</link>
      <description>&lt;P&gt;Reeza,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did your suggestion, but no data set was generated. Where should I insert "output out=dataset_role" to my model? Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 21:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/309428#M66548</guid>
      <dc:creator>viva0521</dc:creator>
      <dc:date>2016-11-04T21:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to output partition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/309432#M66552</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc adaptivereg data=imported_excel 
SEED = 123 
PLOTS = ALL
details=bases;
partition fraction(validate=0.25 test=0.25);
model Y = A B C;
output out=dataset_role;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this doesn't work post your log. I ran it using the example in the documentation and it worked fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_adaptivereg_examples03.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_adaptivereg_examples03.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 21:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/309432#M66552</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-04T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to output partition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/310226#M66888</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. It does work, but I still got one question. So I am using 25% of the whole dataset as "test",&amp;nbsp;the number of observations in my whole data set is 816, literally I should get 204 "test" observations. However, I found there were 211 observations pulled out as "test" with the code above, is there anything wrong with this? Not a big deal, just curious, thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 19:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/310226#M66888</guid>
      <dc:creator>viva0521</dc:creator>
      <dc:date>2016-11-08T19:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to output partition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/310261#M66899</link>
      <description>&lt;P&gt;No idea, I would consider passing that on to Tech Support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 02:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-partition/m-p/310261#M66899</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-09T02:33:47Z</dc:date>
    </item>
  </channel>
</rss>

