控制图 - K 西格玛设置你好,
我想制作一个控制图,其中 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 西格玛设置伟大的! 它的工作! 非常感谢您的回答 
回复:控制图 - K 西格玛设置也许是这样的:
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;