Learn R Programming

IQCC (version 1.0)

UchartII: Traditional Shewhart u chart for phase II.

Description

This function builds the traditional Shewhart u chart based on normal approx. for the Poisson-based count data statistic . It is designed for phase II.

Usage

UchartII(x, sizes, lambda, length)

Arguments

x
The data to be plotted.
sizes
A value or a vector of values specifying the sample sizes associated with each group.
lambda
The estimate of lambda.
length
The length of the data.

Details

To use this function it is necessary to have the information about the UchartI. It is important to note that the normal approx. involved is valid only for n.p large. For small n.p , it should be used an "improved u chart" (with non-normal correction) given by the function "UextI" for phase-I or "UextII" for phase II.

See Also

UchartI,UextII

Examples

Run this code
data(moonroof)
attach(moonroof)
uchI<-UchartI(x=yi[1:17],sizes=ni[1:17],par=ui[1:17],17)
UchartII(yi[18:34],sizes=ni[18:34],lambda=uchI[1],length=17)

Run the code above in your browser using DataLab