View source: R/MultivariateObtainAverageRunLength.R
mgetRL | R Documentation |
Get the run length
mgetRL( replica = 1, n, m, nv, theta = NULL, Ftheta = NULL, dists, mu, sigma = NULL, dists.par = NULL, correlation = 0, s = NULL, chart = "T2", chart.par = c(0.005), null.dist = "Chi", alignment = "unadjusted", constant = NULL, absolute = FALSE, calibrate = FALSE, arl0 = 370 )
replica |
scalar. It is used for the parallel version of the function ( |
n |
scalar. Subroup size |
m |
scalar. Reference sample size |
nv |
scalar. Number of variables to be generated. |
theta |
vector. Value corresponding with the |
Ftheta |
vector. Quantile of the data distribution. The values that take are between (0,1). |
dists |
vector of character string. Distribution of each variable. The length mus be the same as the number of variables. Select from:
|
mu |
vector. Two elements of the vector the first one is the mean of the reference sample and the second one is the mean of the monitoring sample. |
sigma |
scalar. Standard deviation of the desired distribution. |
dists.par |
matrix For each variable (column), specify
The number of columns must be the same as the number of variables. |
correlation |
scalar. Corralation between variables. |
s |
matrix. Correlation matrix of the variables |
chart |
character string. Selected type of chart. One option available:
|
chart.par |
vector. Control limit and other parameters of the selected chart. |
null.dist |
character string. It is the null distribution choose from |
calibrate |
logical. If |
arl0 |
scalar. Expected value of the RL. It is only used for stop the RL if exceeds 10 times its value. Default |
mgetRL(n=5, m=10, nv=2, mu=c(0,0), dists = c("Normal", "Normal"), dists.par = matrix(c(0,1,1,0,1,1), ncol=2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.