大家好,
在我試圖繪製的數據中,我有一些虛假的數據點,這些數據點偏離了平均值和控制限制。 我想隱藏和排除這些數據點,然後使用我的JMP腳本重新繪製數據。 以下是腳本中繪製數據的部分,將數據點標記在+/- 6 sigma之外,並且應該在最終繪圖中過濾掉它們:
rpt = Control Chart Builder(
Size( 682, 464 ),
Show Two Shewhart Charts( 0 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :TEST_DATE ), Y( :INFL_WL_MED ) ),
// Add a cusom warning test to mark points outside of +/- 6 sigma
Customize Tests( Test 1( 6, "1" ) ),
Chart( Position( 1 ), Limits( Sigma( Moving Range ) ), Warnings( Test 1( 1 ) ) ),
By( :EPI_RUN, :TEST_SYSTEM )
);
// create the summaries table (contains a column showing test failures)
dt_sum = obj << save summaries;
// clear any existing row states
dt << clear row states();
// loop through each row in the summary table looking for failures
for each row( dt_sum,
// if this row did not meet our criteria, select the corresponding row in the main table
If( :Test Failures == "1",
dt << Select Rows( Row() )
)
);
// Hide exclude all of the selected rows.
dt << Hide and Exclude( 1 );
dt << clear select();該腳本將數據點標記為+/- 6 sigma,但異常值不會被過濾掉,並且數據不會被重新繪製。 任何幫助將不勝感激。
謝謝,
-麥克風
您需要打開“自動重新計算”選項。 這將強製圖表生成器在行狀態更改時重新計算。 以下是腳本索引的示例
幫助==>腳本索引==>控製圖生成器==>自動重新計算
Names Default To Here( 1 );
dt = Open(
"$SAMPLE_DATA/Quality Control/Coating.jmp"
);
obj =
Control Chart Builder(
Variables( Y( :Weight ), Subgroup( :Sample ) )
);
obj << Automatic Recalc( 1 );
dt << Select Rows( 5 ) << Exclude( 1 );