Using variable for control chart sample size
I am trying to use a variable for a control chart sample size and it won't accept it. The following code works:
Samples=6;
tempchart=Control Chart(
Sample Label( :DateTime ),
Sample Size( 4) ,
KSigma( 3 ),
Chart Col( :Value, XBar, R ),save summaries);
but these do not:
Samples=6;
tempchart=Control Chart(
Sample Label( :DateTime ),
Sample Size( Samples) ,
KSigma( 3 ),
Chart Col( :Value, XBar, R ),save summaries);
Samples=6;
tempchart=Control Chart(
Sample Label( :DateTime ),
Sample Size( 4*6) ,
KSigma( 3 ),
Chart Col( :Value, XBar, R ),save summaries);
I have also tried sample size (eval(Samples)), but it doesn't work either.
Any ideas?