<?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 How to convert 'other' result tables to Data Table using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53900#M30447</link>
    <description>&lt;P&gt;I would like to know if there's a way to convert 'other' result tables to Data Table using JSL.&lt;/P&gt;&lt;P&gt;Given below is a sample script and sample analysis result I got from JMP to illustrate my concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Contingency( Y( :Age ), X( :sex ), Make Into Data Table );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the example given below, I would like to capture the analysis result under "TEST" (highlighted in red) and convert the result table to JMP Data Table.&lt;/P&gt;&lt;P&gt;Please help! Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="jmp_question.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10094iD98D14E5001E3336/image-size/large?v=v2&amp;amp;px=999" role="button" title="jmp_question.JPG" alt="jmp_question.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 06:52:12 GMT</pubDate>
    <dc:creator>teng_yems</dc:creator>
    <dc:date>2018-03-27T06:52:12Z</dc:date>
    <item>
      <title>How to convert 'other' result tables to Data Table using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53900#M30447</link>
      <description>&lt;P&gt;I would like to know if there's a way to convert 'other' result tables to Data Table using JSL.&lt;/P&gt;&lt;P&gt;Given below is a sample script and sample analysis result I got from JMP to illustrate my concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Contingency( Y( :Age ), X( :sex ), Make Into Data Table );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the example given below, I would like to capture the analysis result under "TEST" (highlighted in red) and convert the result table to JMP Data Table.&lt;/P&gt;&lt;P&gt;Please help! Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="jmp_question.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10094iD98D14E5001E3336/image-size/large?v=v2&amp;amp;px=999" role="button" title="jmp_question.JPG" alt="jmp_question.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 06:52:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53900#M30447</guid>
      <dc:creator>teng_yems</dc:creator>
      <dc:date>2018-03-27T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 'other' result tables to Data Table using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53911#M30453</link>
      <description>&lt;P&gt;Almost all objects in a report window generated by JMP Platforms are accessable.&amp;nbsp; The documentation on how to access the objects is documented in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Books==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;In your specific case, there are 2 Table Box() objects contained in the "Tests" Outline Box();&amp;nbsp; The Make into Data Table message can be applied to the Table Boxes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
con = Contingency( Y( :Age ), X( :sex ), Make Into Data Table );
Report( con )["Tests"][Table Box( 1 )] &amp;lt;&amp;lt; make into data table;
Report( con )["Tests"][Table Box( 2 )] &amp;lt;&amp;lt; make into data table;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The messages available to the different objects are detailed in the Scripting Index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 12:56:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53911#M30453</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-27T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 'other' result tables to Data Table using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53941#M30472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11421"&gt;@teng_yems&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Do you know how to navigate the display tree structure in JSL?&amp;nbsp; The first step is going to be getting a handle on the table box that you want to convert to a data table.&amp;nbsp; This link shows you how to view the display tree: &lt;A href="https://www.jmp.com/support/help/14/view-the-display-tree.shtml" target="_self"&gt;https://www.jmp.com/support/help/14/view-the-display-tree.shtml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once you know which display box you want, you can attach a handle to it like so:&lt;/P&gt;&lt;PRE&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

//cont_win is the window containing the contingency report.  You must use the  "&amp;lt;&amp;lt; Report" message to get the window instead of the Contingency object
cont_win = (dt &amp;lt;&amp;lt; Contingency( Y( :Age ), X( :sex ), Make Into Data Table ))&amp;lt;&amp;lt; Report;

//table1 will reference the table with Rsquare(U) and -loglik
table1 = cont_win["Tests"][TableBox(1)];&lt;/PRE&gt;&lt;P&gt;In this example, I first navigate down to the outline box titled "Tests" to make sure I get the right table boxes.&amp;nbsp; Being more specific will make sure your code is more robust.&amp;nbsp; Then within the "Tests" outline box, I grab the first TableBox element.&lt;/P&gt;&lt;P&gt;Now, to make that table into a data table, check out the "Make Into Data Table" command in the Scripting Index (Help &amp;gt; Scripting Index).&amp;nbsp; I bet you can put the pieces together to get first table you are after and can then write the code to get the table with Loglikelihood and Pearson test results into a data table as well.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 16:05:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/53941#M30472</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-03-27T16:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 'other' result tables to Data Table using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/54273#M30668</link>
      <description>&lt;P&gt;Thanks so much Jim for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 08:15:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/54273#M30668</guid>
      <dc:creator>teng_yems</dc:creator>
      <dc:date>2018-04-02T08:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 'other' result tables to Data Table using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/54274#M30669</link>
      <description>Thanks so much for the help, Cameron!</description>
      <pubDate>Mon, 02 Apr 2018 09:37:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-other-result-tables-to-Data-Table-using-JSL/m-p/54274#M30669</guid>
      <dc:creator>teng_yems</dc:creator>
      <dc:date>2018-04-02T09:37:37Z</dc:date>
    </item>
  </channel>
</rss>

