manualPlan | R Documentation |
Constructs an AttrPlan
or VarPlan
object from the given parameters.
manualPlan(distribution = c("binomial", "poisson", "normal", "beta"),
n = NULL, c = NULL, k = NULL,
USL = NULL, LSL = NULL, sigma = NULL, theta = NULL,
sigma_type = c("known", "unknown"),
theta_type = c("known", "unknown"))
distribution |
One of |
n |
Sample size. |
c |
Acceptance number (for attribute sampling). |
k |
Acceptability constant (for variable sampling). |
USL |
Upper specification limit. |
LSL |
Lower specification limit. |
sigma |
Standard deviation (for normal plans). |
theta |
Precision parameter (for beta plans). |
sigma_type |
Either |
theta_type |
Either |
This function provides a user-friendly wrapper to construct AS plan directly
from parameters.
Internally, it constructs the appropriate AttrPlan
or VarPlan
,
from given paramenters.
An object of class "AttrPlan"
or VarPlan
.
Ha Truong
optPlan
, OCdata
# Attribute sampling with user-defined parameters
plan1 <- manualPlan(n = 100, c = 2, distribution = "binomial")
# Variable sampling (normal)
plan2 <- manualPlan(n = 30, k = 1.5, distribution = "normal", USL = 10, sigma = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.