<?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 extract only the prob &amp;gt; |t| from a t test report ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-extract-only-the-prob-gt-t-from-a-t-test-report/m-p/761990#M94017</link>
    <description>&lt;P&gt;This might not be very robust method but gives one possible idea&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ow = dt &amp;lt;&amp;lt; Oneway(
	Y(:height),
	X(:sex),
	t Test(1),
);

tb = Report(ow)[OutlineBox("t Test"), Table Box(1)];
vals = tb[ColStackBox(2), NumberColBox(2)] &amp;lt;&amp;lt; get;
prob = vals[1];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One pretty good option usually is to turn the table box into datatable using &amp;lt;&amp;lt; Make Into Data Table and then extracting the value from that. After you have the value, remember to close the table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ow = dt &amp;lt;&amp;lt; Oneway(
	Y(:height),
	X(:sex),
	t Test(1),
);

dt_ttest = Report(ow)[OutlineBox("t Test"), Table Box(1)] &amp;lt;&amp;lt; Make Into Data Table(Invisible(1));
val = dt_ttest[3, 6];
Close(dt_ttest, no save);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Both can be made more robust by checking where Prob &amp;gt; |t| is.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 15:37:50 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-05-29T15:37:50Z</dc:date>
    <item>
      <title>How to extract only the prob &gt; |t| from a t test report ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-only-the-prob-gt-t-from-a-t-test-report/m-p/761985#M94014</link>
      <description>&lt;P&gt;Probably a very simple question but is there a simple way to extract only the&amp;nbsp;prob &amp;gt; |t| from a t test report ? From this line which extract the full report.:&lt;/P&gt;&lt;P&gt;dt1 = rpt[Outline Box( "t Test" )][Table Box( 1 )];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full script with smaller count of Xs and Ys:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Entrer analyse et column switchers
Oneway(
	Y(:Name("553")),
	X(:Name("1")),
	t Test(1),
	Column Switcher(:Name("1"), {:Name("1"), :Name("2"), :Name("3")}), 
	Column Switcher(:Name("553"), {:Name("553"), :Name("554")}));

//Report
rpt = Current Report();
colswitcher_obj = rpt[ColumnSwitcherCOntextOutlinebox( 1 )] &amp;lt;&amp;lt; get scriptable object;
colswitcher_obj2 = rpt[ColumnSwitcherCOntextOutlinebox( 2 )] &amp;lt;&amp;lt; get scriptable object;
colswitch_list = colswitcher_obj &amp;lt;&amp;lt; get list;
colswitch_list2 = colswitcher_obj2 &amp;lt;&amp;lt; get list;

// Loop column switcher 1
For(j = 1, j &amp;lt;= N Items(colswitch_list2), j++, 

	// Loop column switcher 2
	For(k = 1, k &amp;lt;= N Items(colswitch_list), k++, 

	// Changer le test ici
	dt1 = rpt[Outline Box( "t Test" )][Table Box( 1 )];

	// Concatenate table
	If(j == 1 &amp;amp; k == 1,
		main_tb = dt1;
		main_tb &amp;lt;&amp;lt; Set Name( "All" );
	,
		Try( main_tb &amp;lt;&amp;lt; Concatenate( dt1, Append to First Table ) );
		Close( dt1, No Save );
	);

        colSwitcher_obj &amp;lt;&amp;lt; Next;
	wait(0);
	);

colSwitcher_obj2 &amp;lt;&amp;lt; Next;
wait(0);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2024 15:20:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-only-the-prob-gt-t-from-a-t-test-report/m-p/761985#M94014</guid>
      <dc:creator>GCardin</dc:creator>
      <dc:date>2024-05-29T15:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only the prob &gt; |t| from a t test report ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-only-the-prob-gt-t-from-a-t-test-report/m-p/761990#M94017</link>
      <description>&lt;P&gt;This might not be very robust method but gives one possible idea&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ow = dt &amp;lt;&amp;lt; Oneway(
	Y(:height),
	X(:sex),
	t Test(1),
);

tb = Report(ow)[OutlineBox("t Test"), Table Box(1)];
vals = tb[ColStackBox(2), NumberColBox(2)] &amp;lt;&amp;lt; get;
prob = vals[1];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One pretty good option usually is to turn the table box into datatable using &amp;lt;&amp;lt; Make Into Data Table and then extracting the value from that. After you have the value, remember to close the table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ow = dt &amp;lt;&amp;lt; Oneway(
	Y(:height),
	X(:sex),
	t Test(1),
);

dt_ttest = Report(ow)[OutlineBox("t Test"), Table Box(1)] &amp;lt;&amp;lt; Make Into Data Table(Invisible(1));
val = dt_ttest[3, 6];
Close(dt_ttest, no save);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Both can be made more robust by checking where Prob &amp;gt; |t| is.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:37:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-only-the-prob-gt-t-from-a-t-test-report/m-p/761990#M94017</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-29T15:37:50Z</dc:date>
    </item>
  </channel>
</rss>

