I would think that it is a bug of some kind especially since the same
sort of operation to set an axis reference line by using a variable does
work.
The following rather ungainly workaround does appear to do what you
want:
mean=1.7;
lcl=1.3;
ucl=2.1;
cc = substitute(expr(
Control Chart(Sample Label( :ID), Group Size(1), KSigma(3), Chart Col(
:Y, Individual Measurement(Avg(mmm), LCL(lll),UCL(uuu))),
SendToReport(Dispatch({"Individual Measurement of Y"}, "Control Charts",
FrameBox, Frame Size(58,
156))))),expr(mmm),evalexpr(mean),expr(lll),evalexpr(lcl),expr(uuu),evalexpr(ucl));
cc;
Michael
On Fri, 22 Apr 2005 16:08:00 -0400, paige.miller@kodak.com said:
> When I try to create a control chart on my data, I issue the following
> JSL
> command:
>
> Control Chart(Sample Label( :Name("Emul/Order")), KSigma(3), Chart Col(
> :FTC_B, Individual Measurement(Avg(1.7), LCL(1.3), UCL(2.1))));
>
> and lo and behold, I get the exact control chart I want, with centerline
> at
> 1.7, lower control limit at 1.3 and upper control limit at 2.1
>
> Next, I try the following:
>
> mean=1.7;
> lcl=1.3;
> ucl=2.1;
> Control Chart(Sample Label( :Name("Emul/Order")), KSigma(3), Chart Col(
> :FTC_B, Individual Measurement(Avg(mean), LCL(lcl), UCL(ucl))));
>
> Guess what? My center line is no longer at 1.7, my lower control limit is
> no longer at 1.3, and my upper control limit is no longer at 2.1.
>
> Now, to my way of thinking, this is a bug, and also very undesirable.
> Please try it on a suitable set of data and see what you get. Thanks!
>
> --
> Paige Miller
> Eastman Kodak Company
>
> paige.miller@kodak.com
> (585) 477-2946
> http://www.kodak.com
>
> "It's nothing until I call it!" -- Bill Klem, NL Umpire
> "When you get the choice to sit it out or dance, I hope you dance" -- Lee
> Ann Womack
>
|