cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Sebastienlg
Level II

Control chart - K sigma set up

Hello,

 

I would like to make a control chart with a KSigma set up by a coefficient automatically calculated.

 

Below is my code:

 

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 ) ) ),

...

 

However, by setting up the coefficient with this code: 

KSigma( z_KSigmaZ ),

it doesn't work and 3 is always applied as coefficient...

 

Is someone has an idea to help me with this?

Regards,

Sebastien

 

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Staff

Re: Control chart - K sigma set up

Perhaps something like this:

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;

View solution in original post

2 REPLIES 2
ian_jmp
Staff

Re: Control chart - K sigma set up

Perhaps something like this:

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;
Sebastienlg
Level II

Re: Control chart - K sigma set up

Great! It's working! Thank's a lot for your answer