Learn R Programming

spcadjust (version 1.0)

SPC2sidedconfint: Computes a two-sided confidence interval for properties of a control chart.

Description

Computes a two-sided confidence interval for properties of a control chart.

Usage

SPC2sidedconfint(covprob = 0.9, ...)

Arguments

covprob
The coverage probability of the adjustment.
...
Parameters to be passed to SPCproperty

Value

The desired confidence interval, a vector of length 2.

See Also

SPCproperty

Examples

Run this code
# Compute 2-sided CI for the ARL of a CUSUM control chart assuming normality.
 X <-  rnorm(100) #observed data
 chart <- new("SPCCUSUM",model=SPCModelNormal(Delta=1)) # CUSUM chart with normal observations
 SPC2sidedconfint(data=X,nrep=100,covprob=0.95,
            property="ARL",chart=chart,params=list(threshold=4))

Run the code above in your browser using DataLab