<?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: PROC HPSPLIT not displaying sensitivity and specificity in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPSPLIT-not-displaying-sensitivity-and-specificity/m-p/840150#M41640</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is very strange.&lt;BR /&gt;The way you have set it up is correct.&lt;BR /&gt;Like this code, with dummy data (only 19 records and 17 having the event), proves :&lt;/P&gt;
&lt;P&gt;( I used the same SAS :&amp;nbsp;&lt;SPAN&gt;SAS 9.4 TS Level 1M7 )&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT;
  value count_f
   11        = "1 organ"
   12 - high = "&amp;gt; 1 organ";
RUN;

ODS GRAPHICS ON; 

PROC HPSPLIT data=sashelp.class CVMODELFIT seed=102122;
    id     name;
    CLASS  age sex;
    MODEL  age(event='&amp;gt; 1 organ') = sex height weight;
    format age count_f.;
GROW entropy;
PRUNE costcomplexity;
RUN;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would open a ticket at SAS Technical Support in your country !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Sun, 23 Oct 2022 14:25:18 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-10-23T14:25:18Z</dc:date>
    <item>
      <title>PROC HPSPLIT not displaying sensitivity and specificity</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPSPLIT-not-displaying-sensitivity-and-specificity/m-p/840014#M41630</link>
      <description>&lt;P&gt;Hello SAS community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;STRONG&gt;PROC HPSPLIT&amp;nbsp;&lt;/STRONG&gt;to create a binary classification tree. It mostly seems to run fine, except for some reason it is not showing me the model &lt;STRONG&gt;sensitivity and specificity&lt;/STRONG&gt; in the output, even though I do get an ROC plot and confusion matrix. I have specified the EVENT= option in the MODEL statement, which &lt;EM&gt;should&lt;/EM&gt; trigger the calculation of sensitivity and specificity. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My (non-reproducible) code is below. The outcome, COUNT, is a numeric variable with discrete integer values 1 through 6. The format "count_f" supplied to PROC HPSPLIT will force it to be binary. The sample size is approximately 10 thousand observations. However, there is missing data, which reduces the sample size to approximately 7,000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Session information: SAS 9.4 TS Level 1M7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC FORMAT;
  value count_f
            1 = "1 organ"
            2 - high = "&amp;gt; 1 organ";
RUN;
&lt;BR /&gt;ODS GRAPHICS ON;&amp;nbsp;&lt;BR /&gt;
PROC HPSPLIT data=my_data CVMODELFIT seed=102122;
&amp;nbsp; &amp;nbsp; CLASS&amp;nbsp; COUNT X1 X2 X3 X4 X5;
&amp;nbsp; &amp;nbsp; MODEL COUNT(event='&amp;gt; 1 organ') = X1 X2 X3 X4 X5;
&amp;nbsp; &amp;nbsp; format   COUNT count_f.;
GROW entropy;
PRUNE costcomplexity;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log is indicating that the procedure has correctly recognized my outcome as binary with the intended event category:&lt;/P&gt;&lt;PRE&gt;NOTE: PROC HPSPLIT is modeling the event COUNT=&amp;gt; 1 organ for sensitivity, specificity, AUC, and ROC curve calculations&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any insight you can share!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="hpsplit_screenshot.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76453i6917DE0F30EF7C5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hpsplit_screenshot.png" alt="hpsplit_screenshot.png" /&gt;&lt;/span&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=""&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 20:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPSPLIT-not-displaying-sensitivity-and-specificity/m-p/840014#M41630</guid>
      <dc:creator>dufaultb</dc:creator>
      <dc:date>2022-10-21T20:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HPSPLIT not displaying sensitivity and specificity</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPSPLIT-not-displaying-sensitivity-and-specificity/m-p/840150#M41640</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is very strange.&lt;BR /&gt;The way you have set it up is correct.&lt;BR /&gt;Like this code, with dummy data (only 19 records and 17 having the event), proves :&lt;/P&gt;
&lt;P&gt;( I used the same SAS :&amp;nbsp;&lt;SPAN&gt;SAS 9.4 TS Level 1M7 )&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT;
  value count_f
   11        = "1 organ"
   12 - high = "&amp;gt; 1 organ";
RUN;

ODS GRAPHICS ON; 

PROC HPSPLIT data=sashelp.class CVMODELFIT seed=102122;
    id     name;
    CLASS  age sex;
    MODEL  age(event='&amp;gt; 1 organ') = sex height weight;
    format age count_f.;
GROW entropy;
PRUNE costcomplexity;
RUN;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would open a ticket at SAS Technical Support in your country !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 14:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPSPLIT-not-displaying-sensitivity-and-specificity/m-p/840150#M41640</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-23T14:25:18Z</dc:date>
    </item>
  </channel>
</rss>

