그래서 나는 이것을 스크립팅 한 것 같아서이 제네릭을 만드는 방법을 알아낼 수없는 곳에 약간 붙어 있습니다.
따라서 궁극적으로 pVal <0.05 인 chartID로 원래 데이터 세트를 하위 집합으로 만들기 위해 점점 더 길어지는 3 개의 순차적 쿼리 스크립트가 있습니다.
더 좋은 방법이 있습니까? Query # 3 (joining)에 도달 할 때까지 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.