<?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: exporting x-y values for roc curve from hpsplit in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938529#M46825</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much! I got an error but that is probably just because I am not sure where to put it. I have "ods word close;" as the last line of my code but when I put it there, I get an error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228622"&gt;@jbrau123&lt;/a&gt;&amp;nbsp;COMMENT for your future benefit: had you included your PROC HPSPLIT code in your initial message, we wouldn't have had this issue, I would have shown you where to put the ODS OUTPUT statement. So, please, always, that's ALWAYS, show us the relevant part of your code, in this case all of your PROC HPSPLIT code, in your initial post. If the error occurs in a DATA step, show us the DATA step (all of it). If there are errors in the log, we will always (that's ALWAYS) need to see the log of that PROC or DATA step as well.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 14:13:58 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-08-07T14:13:58Z</dc:date>
    <item>
      <title>exporting x-y values for roc curve from hpsplit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938498#M46821</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using hpsplit for decision tree modeling and I can successfully get outputs including ROC curve. I have looked through the documentation for hpsplit but I can't seem to find info about how to export the x-y plot values to a table. I wish to export the values so that I can compare ROC curve from the decision tree to other ROC curves in one common plot. With&amp;nbsp;CVMODELFIT I can get some fit values but not each of the x-y plot values, it seems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;J&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xy.png" style="width: 542px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99083i46146EE3D620CEFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="xy.png" alt="xy.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/141/hpsplit.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/stat/141/hpsplit.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938498#M46821</guid>
      <dc:creator>jbrau123</dc:creator>
      <dc:date>2024-08-07T11:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: exporting x-y values for roc curve from hpsplit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938499#M46822</link>
      <description>&lt;P&gt;Try ODS OUTPUT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output rocplot=rocplot;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2024 12:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938499#M46822</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-08-07T12:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: exporting x-y values for roc curve from hpsplit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938504#M46823</link>
      <description>&lt;P&gt;Thank you very much! I got an error but that is probably just because I am not sure where to put it. I have "ods word close;" as the last line of my code but when I put it there, I get an error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA desicion; set work.farm;&lt;BR /&gt;PROC SORT; BY farm year;&lt;/P&gt;
&lt;P&gt;Title 'Decision tree model';&lt;BR /&gt;ods graphics on; &lt;BR /&gt;ODS word file="farm_predict_decisiontree.docx";&lt;BR /&gt;proc hpsplit cvmodelfit seed=13289; /* hpsplit for tree-based statistical models. Seed is a pseudo-random number generator */&lt;BR /&gt;class milk_dummy2 farm year cows land labor;&lt;BR /&gt;model milk_dummy2 = farm year cows land labor;&lt;BR /&gt;grow entropy;&lt;BR /&gt;prune costcomplexity;&lt;/P&gt;
&lt;P&gt;RUN;&lt;BR /&gt;ods &lt;STRONG&gt;&lt;FONT color="#993300"&gt;output rocplot=rocplot&lt;/FONT&gt;&lt;/STRONG&gt; word close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 12:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938504#M46823</guid>
      <dc:creator>jbrau123</dc:creator>
      <dc:date>2024-08-07T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: exporting x-y values for roc curve from hpsplit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938528#M46824</link>
      <description>&lt;P&gt;The ODS OUTPUT statement should be in the body of the procedure code or &lt;STRONG&gt;immediately&lt;/STRONG&gt; preceding the Procedure. It is also a statement that requires a semicolon to end it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc hpsplit cvmodelfit seed=13289; /* hpsplit for tree-based statistical models. Seed is a pseudo-random number generator */
   class milk_dummy2 farm year cows land labor;
   model milk_dummy2 = farm year cows land labor;
   grow entropy;
   prune costcomplexity;
   ods output rocplot=rocplot ;
RUN;
&lt;/PRE&gt;
&lt;P&gt;Strongly suggest that you get in the habit of ending procedures with a RUN; statement and that that you use DATA= to tell procedures which data set to use. I know that SAS makes pretty good attempts to deal when they are not present but I've seen some interesting "why is that happening questions" when people get interrupted and the _last_ data set is not the one they intend to use for a procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938528#M46824</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-07T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: exporting x-y values for roc curve from hpsplit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938529#M46825</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much! I got an error but that is probably just because I am not sure where to put it. I have "ods word close;" as the last line of my code but when I put it there, I get an error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228622"&gt;@jbrau123&lt;/a&gt;&amp;nbsp;COMMENT for your future benefit: had you included your PROC HPSPLIT code in your initial message, we wouldn't have had this issue, I would have shown you where to put the ODS OUTPUT statement. So, please, always, that's ALWAYS, show us the relevant part of your code, in this case all of your PROC HPSPLIT code, in your initial post. If the error occurs in a DATA step, show us the DATA step (all of it). If there are errors in the log, we will always (that's ALWAYS) need to see the log of that PROC or DATA step as well.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938529#M46825</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-08-07T14:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: exporting x-y values for roc curve from hpsplit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938630#M46830</link>
      <description>&lt;P&gt;Ofcourse, yes, I should always end with a RUN statement, my apologies. Thank you very much for your help, it has been very helpful!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 05:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/exporting-x-y-values-for-roc-curve-from-hpsplit/m-p/938630#M46830</guid>
      <dc:creator>jbob2024</dc:creator>
      <dc:date>2024-08-08T05:41:44Z</dc:date>
    </item>
  </channel>
</rss>

