當我有幾個具有用戶定義的控件限制的列(作為列屬性),並且我運行進程篩選時,結果表不顯示限制。所有測試和相關警報都很好地顯示,但看到限制也很好。有沒有辦法向他們展示?
你總能做到這一點:
NamesDefaultToHere(1);
// Make a table
dt = New Table( "Test",
New Column( "Column 1",
Numeric,
"Continuous",
Formula( Random Normal() ),
Set Property(
"Control Limits",
{Individual Measurement( Avg( 1 ), LCL( 0 ), UCL( 2 ) )}
)
),
New Column( "Column 2",
Numeric,
"Continuous",
Formula( Random Normal( 3 ) ),
Set Property( "Control Limits", {XBar( Avg( 3 ), LCL( 0 ), UCL( 6 ) )} )
)
);
dt << addRows(1000);
// Do the Process Screening
ps = dt << Process Screening( Y( :Column 1, :Column 2 ), Control Chart Type( "Indiv and MR" ) );
// Add the limits
tb = Report(ps)[TableBox(1)];
cols = Report(ps)[StringColBox(1)] << get;
avg_ = J(NItems(cols), 1, .);
lcl_ = J(NItems(cols), 1, .);
ucl_ = J(NItems(cols), 1, .);
for (c=1, c<=NItems(cols), c++,
clExpr = Column(dt, cols[c]) << getProperty("Control Limits");
avg_[c] = Arg(Arg(Arg(clExpr,1), 1), 1);
lcl_[c] = Arg(Arg(Arg(clExpr,1), 2), 1);
ucl_[c] = Arg(Arg(Arg(clExpr,1), 3), 1);
);
tb << Append(
ColSpanBox("Control Limits",
NumberColBox("Average", avg_),
NumberColBox("LCL", lcl_),
NumberColBox("UCL", ucl_),
)
);
但我懷疑你已經知道了!