J'ai un problème où je veux tabuler la somme et n pour chaque test dans un grand programme de test. Je ne sais pas quel est mon problème, mais j'apprécierais quelques conseils. Le code compile et génère la fenêtre Tabuler comme indiqué ci-dessous, mais n'est pas rempli.

Ci-dessous le code que j'ai écrit:
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");