<?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 Get the AUC value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684300#M87005</link>
    <description>&lt;P&gt;Thanks for your help, txnelson! Ultimately, this is what worked:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// Open data table
dt = Open( "sample.jmp" );
// Create an output data table for the results
MyTable = New Table( "Results", New Column( "AUC" ) );
// Add a new row to the output data table
MyTable &amp;lt;&amp;lt; Add Rows( 1 );
// Run Fit Model
MyResult = dt &amp;lt;&amp;lt; Fit Model(Y( :case ),Effects( :weight ),Personality( Nominal Logistic ),Run(Positive Level( "1" ),Likelihood Ratio Tests( 1 ),ROC Curve( 1 ),));
// Add the AUC to the data table by grabbing it from the display report output
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][numberbox(1)] &amp;lt;&amp;lt; get text);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Oct 2023 18:38:00 GMT</pubDate>
    <dc:creator>ond_stats</dc:creator>
    <dc:date>2023-10-05T18:38:00Z</dc:date>
    <item>
      <title>How to Get the AUC value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/683936#M86961</link>
      <description>&lt;P&gt;I am trying to get the AUC value from logistic regression output and write it to a table. So far, my script returns a blank value instead of 0.62937 as shown in the output below. The data table is created correctly, and the "fit model" command runs. Is there an error in the last line? I am following an example in another post in this forum, but I suspect my older version of JMP (version 9.0) may be an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// Open data table
dt = Open( "sample.jmp" );
// Create an output data table for the results
MyTable = New Table( "Results", New Column( "AUC" ) );
// Add a new row to the output data table
MyTable &amp;lt;&amp;lt; Add Rows( 1 );
// Run Fit Model
MyResult = dt &amp;lt;&amp;lt; Fit Model(Y( :case ),Effects( :weight ),Personality( Nominal Logistic ),Run(Positive Level( "1" ),Likelihood Ratio Tests( 1 ),ROC Curve( 1 ),));
// Add the AUC to the data table by grabbing it from the display report output
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][Number Col Box( 1 )] &amp;lt;&amp;lt; get [1]);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fit_model_display_box.png" style="width: 399px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57223i7174636E26D853EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="fit_model_display_box.png" alt="fit_model_display_box.png" /&gt;&lt;/span&gt;&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="results_table.png" style="width: 295px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57225i7F9BE0590FBE0C9A/image-dimensions/295x307?v=v2" width="295" height="307" role="button" title="results_table.png" alt="results_table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 00:42:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/683936#M86961</guid>
      <dc:creator>ond_stats</dc:creator>
      <dc:date>2023-10-05T00:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get the AUC value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/683948#M86965</link>
      <description>&lt;P&gt;The entry for the AUC does not look like a Number Col Box().&amp;nbsp; What version of JMP are you using, and what operating system is it running on?&lt;/P&gt;
&lt;P&gt;It looks more like a Text Box.&lt;/P&gt;
&lt;P&gt;In my running on various versions of JMP, I do not see the format of the AUC that you are showing.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 01:54:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/683948#M86965</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-05T01:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get the AUC value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684002#M86972</link>
      <description>&lt;P&gt;I am using JMP9.0.0 on Windows 11. If I change the last line to:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][TextBox(6)] &amp;lt;&amp;lt; get text );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then the string "Area Under Curve =" is returned as the result for the variable 'AUC'. Here is a portion of the tree structure. It's that value in NumberBox(1) that I am trying to extract.&amp;nbsp;&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="tree_structure.png" style="width: 390px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57230iEB258A29B1BB24E3/image-dimensions/390x404?v=v2" width="390" height="404" role="button" title="tree_structure.png" alt="tree_structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 04:53:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684002#M86972</guid>
      <dc:creator>ond_stats</dc:creator>
      <dc:date>2023-10-05T04:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get the AUC value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684036#M86975</link>
      <description>&lt;P&gt;Try moving the trailing ")" to before the substring reference "[1]"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:AUC = (Report( MyResult )["Receiver Operating Characteristic"][Number Col Box( 1 )] &amp;lt;&amp;lt; get )[1];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 08:41:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684036#M86975</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-05T08:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get the AUC value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684300#M87005</link>
      <description>&lt;P&gt;Thanks for your help, txnelson! Ultimately, this is what worked:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// Open data table
dt = Open( "sample.jmp" );
// Create an output data table for the results
MyTable = New Table( "Results", New Column( "AUC" ) );
// Add a new row to the output data table
MyTable &amp;lt;&amp;lt; Add Rows( 1 );
// Run Fit Model
MyResult = dt &amp;lt;&amp;lt; Fit Model(Y( :case ),Effects( :weight ),Personality( Nominal Logistic ),Run(Positive Level( "1" ),Likelihood Ratio Tests( 1 ),ROC Curve( 1 ),));
// Add the AUC to the data table by grabbing it from the display report output
MyTable:AUC = (Report( MyResult )["Receiver Operating Characteristic"][numberbox(1)] &amp;lt;&amp;lt; get text);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 18:38:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Get-the-AUC-value/m-p/684300#M87005</guid>
      <dc:creator>ond_stats</dc:creator>
      <dc:date>2023-10-05T18:38:00Z</dc:date>
    </item>
  </channel>
</rss>

