cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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
Level X

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
Level X

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

Recommended Articles