<?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: Script, Query Builder: filter original data by pVals&amp;lt;=0.05? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-Query-Builder-filter-original-data-by-pVals-lt-0-05/m-p/408941#M65872</link>
    <description>&lt;P&gt;did you mean to add a different script to your question?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 22:27:28 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2021-08-11T22:27:28Z</dc:date>
    <item>
      <title>Script, Query Builder: filter original data by pVals&lt;=0.05?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-Query-Builder-filter-original-data-by-pVals-lt-0-05/m-p/390059#M64019</link>
      <description>&lt;P&gt;So I think I've over scripted this, and now stuck a bit where I can't figure out how to make this generic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've got 3 sequential Query scripts that are getting longer and longer to ultimately subset the original dataset by chartID's with pVal &amp;lt;0.05.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a better way? by the time I get to Query#3 (joining), I have to save the Query#2 dt locally rather than run from memory and the script includes the specific list of ChartID's rather than a generic variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ow = Oneway(
Y( :MEAN ),
X( :CHAMBER ),
By(:ChartID),
All Pairs( 1 )
//and then all the normal chart formatting and stuff
)

//create the pVal dt

dt1 = Report( ow[1] )["Means Comparisons", "Comparisons for all pairs using Tukey-Kramer HSD","Ordered Differences Report"][Table Box( 1 )] &amp;lt;&amp;lt; Make Combined Data Table;

dt1 &amp;lt;&amp;lt; set name( "pValue PairWise by Channel Tukey")


query#1 --&amp;gt; dt1 where pVal &amp;lt;=0.05

Query#2 --&amp;gt; count distinct ChartID of query#1

Query#3 --&amp;gt; join dataset w/ Query#2 by ChartID


close all

replot the charts with the smaller subset of data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:48:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-Query-Builder-filter-original-data-by-pVals-lt-0-05/m-p/390059#M64019</guid>
      <dc:creator>aliegner1</dc:creator>
      <dc:date>2023-06-09T19:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script, Query Builder: filter original data by pVals&lt;=0.05?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-Query-Builder-filter-original-data-by-pVals-lt-0-05/m-p/408941#M65872</link>
      <description>&lt;P&gt;did you mean to add a different script to your question?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 22:27:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-Query-Builder-filter-original-data-by-pVals-lt-0-05/m-p/408941#M65872</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-08-11T22:27:28Z</dc:date>
    </item>
  </channel>
</rss>

