控製圖 - K sigma 設置你好,
我想製作一個由自動計算的係數設置的 KSigma 控製圖。
下面是我的代碼:
graph = New Window( chart_title,
Control Chart(
Sample Label( :Numéro de lot ),
Sample Size( :N ),
KSigma( z_KSigmaZ ),
Sort by Row Order( 1 ),
Chart Col( :"Y1"n, P( Limits Precision( 1 ), LCL( -3 ) ) ),
...
但是,通過使用此代碼設置係數:
KSigma( z_KSigmaZ ),
它不起作用,並且總是將 3 用作係數...
有人有想法可以幫助我嗎?
問候,
塞巴斯蒂安
腳本回复:控製圖 - K sigma 設置也許是這樣的:
NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
ksVal = 2;
// 'Template' expression to make a Control Chart
makeCC = Expr(cc = dt << Control Chart( Sample Label( :age ), KSigma(TBD), Chart Col( :height, XBar, R ) ));
// Subsitite the required value into 'makeCC'
SubstituteInto(makeCC, Expr(TBD), ksVal);
// Evaluate the resulting expression
makeCC;