These functions are now in the qcc package so you don't need to load
TeachingDemos to use them. They will eventually dissapear from this
package.
These functions are used to compute statistics required by the g chart
(geometric distribution) for use with the qcc package.
a numeric value used to compute control limits,
specifying the number of standard deviations (if 'conf' > 1) or the
confidence level (if 0 < 'conf' < 1).
Value
The function 'stats.g' returns a list with components 'statistics' and
'center'.
The function 'sd.g' returns 'std.dev' the standard deviation
(sqrt(1-p)/p).
The function 'limits.g' returns a matrix with lower and upper control limits.
Details
These functions work with the qcc package and may someday be moved
into the qcc package.
The g chart plots the number of non-events between events. np charts
do not work well when the probability of an event is rare (see example
below). Instead of plotting the number of events, the g chart plots
the number of non-events between events.
References
Kaminsky, FC et. al. (1992): Statistical Control Charts
Based on a Geometric Distribution, Journal of Quality Technology, 24,
pp 63--69.
Yang, Z et. al. (2002): On the Performance of Geometric Charts with
Estimated Control Limits, Journal of Quality Technology, 34, pp 448--458.