所以我想我已经编写了这个脚本,现在卡住了我无法弄清楚如何使这个通用的地方。
所以我有 3 个顺序查询脚本,它们越来越长,最终通过图表 ID 对原始数据集进行子集,pVal <0.05。
有没有更好的办法?当我到达 Query#3(加入)时,我必须将 Query#2 dt 保存在本地而不是从内存中运行,并且脚本包含 ChartID 的特定列表而不是通用变量。
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 )] << Make Combined Data Table;
dt1 << set name( "pValue PairWise by Channel Tukey")
query#1 --> dt1 where pVal <=0.05
Query#2 --> count distinct ChartID of query#1
Query#3 --> join dataset w/ Query#2 by ChartID
close all
replot the charts with the smaller subset of data.