도움을 구합니다....스크립팅 구문이 변경되었는지 궁금합니다.
수천 개의 열이 있는 데이터 테이블에서 일부 통계 및 t-테스트를 실행하고 있습니다. 그런 다음 p-값 열을 정렬하기 위해 요약 '결합 데이터 테이블'을 생성합니다. 그런 다음 p-값을 기준으로 선택/제외하고 싶지만 전혀 작동하지 않는 것 같습니다. 이견있는 사람?
/***********************************/
/*pVal selection*/
// Create the combined data table, using xPath (return a list of the OutlineBoxes from the report that have the title Ordered Differences Report. Then, use the first of those to make the combined data table.)
outlines = (Report( ow1[1] ) << Top Parent) << XPath( "//OutlineBox[text()='Ordered Differences Report']" );
dt1 = outlines[1][Table Box( 1 )] << Make Combined Data Table;
dt1 = current data table();
//Select the rows w/ low pVal, create a String value of all the Column Names, by selected row
pVals = Loc(dt1:"p-Value"n << get as matrix > 0.05);
comparisonStrings = {};
For(i = 1, i <= N Items(pVals), i++,
Insert Into(comparisonStrings, char(dt1:Y[pVals[i]]));
);
show(comparisonStrings);
//Go to source dt, select all Cols that match the string and exclude. You're left with only Cols from charts w low pVal.
dt_Data_Wide << clear select;
dt_Data_Wide << Clear Column Selection();
colList = dt_Data_Wide << Get Column Names( String ); /*gets a list of all columns*/
For( i = 1, i <= N Items( comparisonStrings ), i++,
If( Contains( colList, Char( comparisonStrings[i] ) ),
Column( dt_Data_Wide , Char( comparisonStrings[i] ) ) << Set Selected( 1 ) << exclude( 1 )
)
);
dt_Data_Wide << clear select;
dt_Data_Wide << Clear Column Selection();