대규모 테스트 프로그램의 각 테스트에 대한 합계와 n을 표로 작성하려는 문제가 있습니다. 내 문제가 무엇인지 잘 모르겠지만 도움을 주시면 감사하겠습니다. 코드는 아래와 같이 Tabulate 창을 컴파일하고 출력하지만 채워지지는 않습니다.

아래는 제가 작성한 코드입니다:
dt = Current Data Table();
colList = dt << Get Column Names( string );
colname = Column(dt, "TEST_T") << getname;
testIndex = (Loc(colList, colname))[1];
numRows = N Rows(dt);
For(i = (testIndex + 1), i <= N Items(colList), i++,
column = Column(dt, colList[i]);
For(j = 1, j <= numRows, j++,
column[j] = Substitute(column[j],
"Pass", "1",
"Fail", "0"
);
);
);
//Change Modeling Type for Tabulate functionality
dt:tst_temp << Set Modeling Type(Nominal);
dt:SITE_NUM << Set Modeling Type(Nominal);
////Change Every Column after TEST_T to Numeric Data Type and Continuous Modeling type
For(i = (testIndex + 1), i <= N Items(colList), i++,
column = Column(dt, colList[i]);
column << Data Type(Numeric);
column << Set Modeling Type(Continuous);
);
list = dt << Get Column Names( string );
Remove From(list, 1, testIndex);
yieldByTest = (dt << Tabulate(
Add Table(
Column Table(
Grouping Columns(:tst_temp),
Statisitcs(Sum, N)
),
Row Table(
Analysis Columns(Column(Eval(list)))
)
),invisible
)
) << Make Into data Table;
yieldByTest << Set Name("Yield by Test Across Temperature");
나는 이것이 예로서 작동한다고 생각한다.
스크립트에 "Statistics(Sum, N)" 오타가 있습니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// Get a list of all continuous Columns
colList = dt << Get Column Names( "Continuous" );
// Feed that list to Analysis Columns of Tabulate
dt << Tabulate(
Show Control Panel( 0 ),
Add Table( Column Table( Analysis Columns( Eval( colList ) ), Statistics( Mean, N ) ), Row Table( Grouping Columns( :sex ) ) )
);
다음은 Tabulate 창의 출력 예입니다. 실제로 행의 수는 훨씬 더 많을 것입니다. 후속 질문입니다. Tabulate 창에서 각 온도에 대한 열로 Sum/N을 가져오는 방법이 있습니까? 수동으로 하고 있는데 표 창에서 간단하게 할 수 있는 방법이 있는지 궁금합니다.

정말 실망스럽습니다. 철자법을 연습해야 할 것 같습니다!