<?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 run test data on decision tree (PROC HPSPLIT) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899521#M355548</link>
    <description>&lt;P&gt;One way is using CODE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x temp;
proc hpsplit data=sashelp.heart maxdepth=5;
   class status sex bp_status;
   model status = sex bp_status  weight height;
   prune costcomplexity;
   code file=x;
run;


data test;
set sashelp.heart(keep=status sex  bp_status  weight height);
run;
data want;
 set test;
 %include x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 Oct 2023 10:33:37 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-10-21T10:33:37Z</dc:date>
    <item>
      <title>How to run test data on decision tree (PROC HPSPLIT)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899412#M355509</link>
      <description>&lt;P&gt;This feels a bit like a dumb question, but how do I run my testing data on the resulting decision tree from PROC HPSPLIT?&lt;/P&gt;
&lt;P&gt;In R, I can use pred&amp;lt;- predict(tree, test, type= "class"); confusionMatrix(test$Species, pred). Is there a similar method with SAS?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 16:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899412#M355509</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2023-10-20T16:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to run test data on decision tree (PROC HPSPLIT)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899414#M355510</link>
      <description>&lt;P&gt;It appears to me that the validation data (and/or test data) for PROC HPSPLIT can be specified in the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_hpsplit_syntax08.htm" target="_self"&gt;PARTITION statement&lt;/A&gt; using the ROLEVAR= option.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 16:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899414#M355510</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-20T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to run test data on decision tree (PROC HPSPLIT)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899521#M355548</link>
      <description>&lt;P&gt;One way is using CODE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x temp;
proc hpsplit data=sashelp.heart maxdepth=5;
   class status sex bp_status;
   model status = sex bp_status  weight height;
   prune costcomplexity;
   code file=x;
run;


data test;
set sashelp.heart(keep=status sex  bp_status  weight height);
run;
data want;
 set test;
 %include x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Oct 2023 10:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-run-test-data-on-decision-tree-PROC-HPSPLIT/m-p/899521#M355548</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-21T10:33:37Z</dc:date>
    </item>
  </channel>
</rss>

