所以我想我已經編寫了這個腳本,現在卡住了我無法弄清楚如何使這個通用的地方。
所以我有 3 個順序查詢腳本,它們越來越長,最終通過圖表 ID 對原始數據集進行子集,pVal <0.05。
有沒有更好的辦法?當我到達 Query#3(加入)時,我必須將 Query#2 dt 保存在本地而不是從內存中運行,並且腳本包含 ChartID 的特定列表而不是通用變量。
ow = Oneway(<BR />Y( :MEAN ),<BR />X( :CHAMBER ),<BR />By(:ChartID),<BR />All Pairs( 1 )<BR />//and then all the normal chart formatting and stuff<BR />)<BR /><BR />//create the pVal dt<BR />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")<BR /><BR />query#1 --> dt1 where pVal <=0.05<BR />Query#2 --> count distinct ChartID of query#1<BR />Query#3 --> join dataset w/ Query#2 by ChartID<BR /><BR />close all<BR /><BR />replot the charts with the smaller subset of data.