cont_to_disc_V {EATME} | R Documentation |
Convert data to V statistic
Description
Convert continuous random variables in in-control process to discrete data with V statistic, where V statistic is the total number of sample satisfying at time
,
where
is the observation for the
sampling period and the
sample in the in-control data,
is the number of the sample size and
is the number of the sampling periods.
is population variance of continuous in-control data. If
is unknown, it can be estimated by
and
.
Usage
cont_to_disc_V(ICdata, OCdata, var.p = NULL)
Arguments
ICdata |
The in-control data. |
OCdata |
The out-of-control data. |
var.p |
Variance of the random variables in the in-control data. |
Value
V0
The V statistic for in-control data.
V1
The V statistic for out-of-control data.
p0
The process proportion for in-control data.
p1
The process proportion for out-of-control data.
n
The number of the sample size.
References
Yang, S. F. & Arnold, B. C. (2014). A simple approach for monitoring business service time variation.The Scientific World Journal, 2014:16.
Yang, S. F., & Arnold, B. C. (2016). A new approach for monitoring process variance. Journal of Statistical Computation and Simulation, 86(14), 2749-2765.
Examples
IC = matrix(rnorm(100,0,1),ncol = 10,byrow = TRUE)
OC = matrix(rnorm(100,0,2),ncol = 10,byrow = TRUE)
cont_to_disc_V(IC,OC)