<?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: Decision tree in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215556#M11688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Gergely&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to get the importance of the variables in the model?&lt;/P&gt;&lt;P&gt;I want to know how important is each variable in the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 22:36:51 GMT</pubDate>
    <dc:creator>juanvg1972</dc:creator>
    <dc:date>2015-05-26T22:36:51Z</dc:date>
    <item>
      <title>Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215542#M11674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanto to make a decision tree model with SAS. I don't jnow if I can do it with Entrprise Guide but I didn't find any task to do it. &lt;/P&gt;&lt;P&gt;Is Enterprise needed.?. Can i Do in a SAS BASE proc?&lt;/P&gt;&lt;P&gt;I want to build and use a model with decision tree algorhitmes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somethnig similar to this logistic regression, but with a decision tree:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Build the&amp;nbsp; model1 */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000e6; font-family: Consolas;"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;STRONG style="color: #0000e6;"&gt;logistic&lt;/STRONG&gt; &lt;SPAN style="color: #0000e6;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=entreno &lt;/SPAN&gt;&lt;SPAN style="color: #0000e6;"&gt;outmodel&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=model1&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: #0000e6;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;SPAN style="color: black;"&gt;cod_tarifa&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: #0000e6;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;SPAN style="color: black;"&gt;hc_consumo=cod_tarifa cod_segmento&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000e6; font-family: Consolas;"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;/* using model1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; color: #0000e6;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas;"&gt; &lt;STRONG style="color: #0000e6;"&gt;logistic&lt;/STRONG&gt; &lt;SPAN style="color: #0000e6;"&gt;inmodel&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=model1 &lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; color: #0000e6;"&gt;score&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas;"&gt; &lt;SPAN style="color: black;"&gt;data=test out=test1&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000e6; font-family: Consolas;"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;Thanks in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 09:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215542#M11674</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-15T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215543#M11675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc arboretum For a pitty is is part of the EM (Enterprise Miner) license. Proc logistic is not part of SAS/base but belongs to SAS/STAT&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_logistic_syntax01.htm" title="http://support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_logistic_syntax01.htm"&gt;SAS/STAT(R) 13.1 User's Guide&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/miner/em43/allproc.pdf" title="http://support.sas.com/documentation/onlinedoc/miner/em43/allproc.pdf"&gt;http://support.sas.com/documentation/onlinedoc/miner/em43/allproc.pdf&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/resources/papers/proceedings11/155-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/155-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/155-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having SAS VA you can also see a decision tree as option. &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/67500/HTML/default/viewer.htm#n0q3i0zwng79kin1kb1zvpo9k312.htm" title="http://support.sas.com/documentation/cdl/en/vaug/67500/HTML/default/viewer.htm#n0q3i0zwng79kin1kb1zvpo9k312.htm"&gt;SAS(R) Visual Analytics 7.1: User's Guide&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 09:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215543#M11675</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-05-15T09:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215544#M11676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check proc hpsplit&lt;/P&gt;&lt;P&gt;It is part of SAS/STAT&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#stathpug_hpsplit_toc.htm" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#stathpug_hpsplit_toc.htm"&gt;SAS/STAT(R) 13.2 User's Guide: High-Performance Procedures&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 12:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215544#M11676</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-15T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215545#M11677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Gergely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that you can create a model (decision tree) with proc hpsplit and apply it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt;proc hpsplit data=sashelp.hmeq maxdepth=7 maxbranch=2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; target BAD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; input DELINQ DEROG JOB NINQ REASON / level=nom;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; input CLAGE CLNO DEBTINC LOAN MORTDUE VALUE YOJ&amp;nbsp; / level=int;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; prune misc / N &amp;lt;= 10;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; partition fraction(validate=0.2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; code file='hpsplhme-code.sas';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt;data scored;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; set sashelp.hmeq;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt; %include 'hpsplhme-code.sas';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Courier New'; color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;My question is....is a reliable proc?, Can I use instead of arboretum?, I don't have E. Miner license.&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;If you can talk me about the diferences...&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;Thanks,&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt; background: white;"&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 13:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215545#M11677</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-15T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215546#M11678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, HPSPLIT is a reliable proc. It is production. It is part of SAS/STAT, you don't need Enterprise Minder license to use it.&lt;/P&gt;&lt;P&gt;HPSPLIT is a new procedure compared to ARBORETUM. And the &lt;STRONG&gt;direct&lt;/STRONG&gt; usage of the later is not officially supported by SAS, only if you use it via Enterprise Miner nodes.(This does not mean it is not working, it means only you cannot open a ticket at SAS.) Also you need EM license to use proc arboretum.&lt;/P&gt;&lt;P&gt;There are many common and distinct features. I don't know of a document that would summarize those.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 13:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215546#M11678</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-15T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215547#M11679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gergely, Split and dmsplit also are existing in Eminer. Hpsplit is an improvement of that all and production. The HPsplit is part of SAS/stat not Em (my failure). &lt;/P&gt;&lt;P&gt;Some decisions of SAS on procs/licenses are difficult to understand.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 14:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215547#M11679</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-05-15T14:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215548#M11680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems executing proc hpsplit and&amp;nbsp; I ask for help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc hpsplit data=test maxdepth=8 maxbranch=2 codefile='modelo_dtree.sas';&lt;/P&gt;&lt;P&gt;24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target baja;&lt;/P&gt;&lt;P&gt;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input comp_pend edad ;&lt;/P&gt;&lt;P&gt;26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: HPSPLIT was unable to open the code file for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with the whole path '\home\user\sas\models\modelo_dtree.sas' but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to&amp;nbsp; save the model?, like....outmodel= in proc logistic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you or anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 22:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215548#M11680</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-15T22:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215549#M11681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your permission settings on the UNIX folder. Who is the owner (user name) of the SAS process?&lt;/P&gt;&lt;P&gt;No, there is no outmodel=, or similar.&lt;/P&gt;&lt;P&gt;Try with this:&lt;/P&gt;&lt;P&gt;codefile="%sysfunc(pathname(work))/model_dtree.sas"&lt;/P&gt;&lt;P&gt;This writes the file to the location of WORK library. You have write permissions there for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 23:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215549#M11681</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-15T23:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215550#M11682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works properly. Is there anyway to visualize the tree of the model. A graphic with the branchs and nodes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am doing that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc hpsplit data=test maxdepth=8 maxbranch=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; target baja;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input comp_pend ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; code file="%sysfunc(pathname(work))/model_dtree.sas";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Aplicar el modelo: */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data validar2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set validar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %include "%sysfunc(pathname(work))/model_dtree.sas";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 09:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215550#M11682</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-16T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215551#M11683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS/STAT 14.1 HPSPLIT will have nice diagrams:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/rnd/app/stat/papers/2015/SAS1940_stokes.pdf" title="https://support.sas.com/rnd/app/stat/papers/2015/SAS1940_stokes.pdf"&gt;https://support.sas.com/rnd/app/stat/papers/2015/SAS1940_stokes.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Right now you have to assemble the graph yourself from the NODESTATS= datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 00:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215551#M11683</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-19T00:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215552#M11684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with SAS OnDemand for Academics in Enterprise Guide.&lt;/P&gt;&lt;P&gt;I can work with proc hpsplit in SAS/STAT module.&lt;/P&gt;&lt;P&gt;I have testes the methos explaines in the document you said (SAS1940_stokes.pdf)&lt;/P&gt;&lt;P&gt;it doesn't work in my version, parameters like model or class doesn't exists in my version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="hpsplit.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10601_hpsplit.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I can run this properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc hpsplit data=test maxdepth=4 maxbranch=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; target res_campaña; /* variable a predecir */&lt;/P&gt;&lt;P&gt;&amp;nbsp; input tipo_cliente compras_3m compras_12m; /* variables en base a las q predecimos */&lt;/P&gt;&lt;P&gt;&amp;nbsp; code file="%sysfunc(pathname(work))/model_dtree.sas"; /* guarda el modelo construido */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to obtain the graph of the decision tree, the ROC curve and the cross validation matrix.&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 11:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215552#M11684</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-26T11:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215553#M11685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On the below link you can find the &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: small;"&gt;User's Guide: High-Performance Procedures for all versions of SAS&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/index.html" style="font-size: 10pt; line-height: 1.5em;" title="https://support.sas.com/documentation/onlinedoc/stat/index.html"&gt;SAS/STAT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check you version, and look at the appropriate description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems in SAS/STAT 14.1 HPSPIT syntax will more similar to the other SAS/STAT procedures&amp;nbsp; (class statement,&amp;nbsp; model statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write the predictions of HPSPLIT to a dataset than use standard tools to&amp;nbsp; produce &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ROC curve (PROC SGPLOT) or CV matrix (PROC MEANS).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can also use PROC LOGISTIC with the &lt;STRONG&gt;nofit&lt;/STRONG&gt; option to produce "automatically" ROC:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_logistic_examples08.htm" title="https://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_logistic_examples08.htm"&gt;SAS/STAT(R) 13.2 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To produce tree graphs you could:&lt;/P&gt;&lt;P&gt;- Use PROC NETDRAW. It is part of SAS/OR (I think it is available on &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;SAS OnDemand for Academics&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;A href="http://support.sas.com/documentation/cdl/en/orpmug/67521/HTML/default/viewer.htm#orpmug_netdraw_overview.htm" title="http://support.sas.com/documentation/cdl/en/orpmug/67521/HTML/default/viewer.htm#orpmug_netdraw_overview.htm"&gt;SAS/OR(R) 13.2 User's Guide: Project Management&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Calculate the layout of the tree than use lines circles, polygons, etc. to draw it (SGPLOT). Not easy. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;- Output the structure of the tree to a text file, than use a graph drawing tool like GraphViz. (Sorry, I know it is not available on &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;SAS OnDemand for Academics, but if you download that text file, you can run a locally installed GraphViz on it.&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;- Generate interactive tree with SAS/GRAPH: &lt;A href="https://support.sas.com/documentation/cdl/en/grapaxug/67223/HTML/default/viewer.htm#p021jx8ygj6y92n1aoeed9ftrojj.htm" title="https://support.sas.com/documentation/cdl/en/grapaxug/67223/HTML/default/viewer.htm#p021jx8ygj6y92n1aoeed9ftrojj.htm"&gt;SAS/GRAPH(R) 9.4: Java Applets and ActiveX Control User's Guide&lt;/A&gt;&amp;nbsp;&amp;nbsp; (Check technical requirements here.) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215553#M11685</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-26T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215554#M11686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give an example of &lt;STRONG&gt;ROC curve&lt;/STRONG&gt; using &lt;STRONG&gt;proc sgplot&lt;/STRONG&gt;?, do I have to use the table scored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case: validar_res teble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc hpsplit data=test maxdepth=4 maxbranch=2 nodestats=arbol; /* nodestats guarda el arbol */&lt;/P&gt;&lt;P&gt;&amp;nbsp; target res_campaña; /* variable a predecir */&lt;/P&gt;&lt;P&gt;&amp;nbsp; input tipo_cliente edad compras_3m compras_12m; /* variables en base a las q predecimos */&lt;/P&gt;&lt;P&gt;&amp;nbsp; code file="%sysfunc(pathname(work))/model_dtree.sas"; /* guarda el modelo construido */&lt;/P&gt;&lt;P&gt;&amp;nbsp; rules file="/home/juanvg1972/ficheros/rules_dtree.txt"; /* reglas aplicadas */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Aplicar el modelo: */&lt;/P&gt;&lt;P&gt;data validar_res;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set validar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %include "%sysfunc(pathname(work))/model_dtree.sas";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215554#M11686</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-26T13:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215555#M11687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here's an example using sashelp.class (no tested throughout):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc hpsplit data=sashelp.class maxdepth=4 maxbranch=2 nodestats=arbol; /* nodestats guarda el arbol */&lt;/P&gt;&lt;P&gt;&amp;nbsp; target sex; /* variable a predecir */&lt;/P&gt;&lt;P&gt;&amp;nbsp; input height; /* variables en base a las q predecimos */&lt;/P&gt;&lt;P&gt;&amp;nbsp; code file="c:\temp\model_dtree.sas"; /* guarda el modelo construido */&lt;/P&gt;&lt;P&gt;&amp;nbsp; rules file="c:\temp\rules_dtree.txt"; /* reglas aplicadas */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Aplicar el modelo: */&lt;/P&gt;&lt;P&gt;data valid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %include "c:\temp\model_dtree.sas";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=valid noprint nway;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var P_SexM;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output out=outmeans n=n;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;proc sort data=valid out=valid_sorted;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by descending P_SexF;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data valid_cum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _N_=1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TP=0;FP=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set outmeans(where=(sex='F') keep=sex _FREQ_ rename=(_FREQ_=FN));/*initially FN=Num of females*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; set outmeans(where=(sex='M') keep=sex _FREQ_ rename=(_FREQ_=TN));/*initially TN=Num of males*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set valid_sorted end=last;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TP+(sex='F');FP+(sex~='F');&lt;/P&gt;&lt;P&gt;&amp;nbsp; FN+(-(sex='F'));TN+(-(sex~='F'));&lt;/P&gt;&lt;P&gt;&amp;nbsp; sens=TP/(TP+FN);&lt;/P&gt;&lt;P&gt;&amp;nbsp; _1mspec=1-(TN/(TN+FP));&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sgplot data=valid_cum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; series x=_1mspec y=sens;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this thread:&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="26912" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/" modifiedtitle="true" title="Re: ROC curves"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 15:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215555#M11687</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-26T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215556#M11688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Gergely&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to get the importance of the variables in the model?&lt;/P&gt;&lt;P&gt;I want to know how important is each variable in the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215556#M11688</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-26T22:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215557#M11689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;output importance=&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#stathpug_hpsplit_syntax06.htm" title="https://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#stathpug_hpsplit_syntax06.htm"&gt;SAS/STAT(R) 13.2 User's Guide: High-Performance Procedures&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215557#M11689</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-05-26T22:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215558#M11690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add that proc netdraw is avalilable in SAS OnDemand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215558#M11690</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-27T11:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Decision tree in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215559#M11691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you understand/analyze this output table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="var_impor.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/10612_var_impor.png" /&gt;&lt;/P&gt;&lt;P&gt;is compras_12m the most important var in the model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Decision-tree-in-SAS/m-p/215559#M11691</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2015-05-27T11:47:40Z</dc:date>
    </item>
  </channel>
</rss>

