Description Usage Arguments Value Examples
This function computes the designs of censored repetitive sampling plans using conventional sampling risks given the requirements of the producer and consumer about maximum allowable risks and quality levels
1 2 |
risks |
Vector of producer and consumer maximum sampling risks |
p |
Vector of acceptance and rejection quality levels |
asvar |
List with the asymptotical variance-covariance matrix of MLE estimators of location and scale lifetime distribution parameters. See |
A data.frame with the following variables of the censored repetitive design of the sampling plans.
"q": Censoring degree
"n": Sample size
"ka": Acceptance constant
"kr": Rejection constant
"termcd": Termination code of Newton-Raphson optimization
"message": Final message of Newton-Raphson optimization
"p_alpha": Acceptable quality level (AQL)
"p_beta": Rejectable quality level (RQL)
"dist": Distribution name
"alpha": Maximum producer's risk
"beta": Maximum consumer's risk
"asn_alpha": ASN at AQL
"asn_beta": ASN at RQL
"asn_avg": Average of ASN at AQL and ASN at RQL
"p_asn_max": Quality level in which ASN maximizes
"asn_max": Maximum ASN over the quality level
1 2 3 4 5 6 7 8 9 | risks<-c(0.05,0.10)
p<-c(0.00654, 0.0426)
q<- 0.1
asvar<-asympt.var(q,"normal")
designs<-rep.plan(risks,p,asvar)
optimal.design<-designs %>% group_by(q,dist,p_alpha,p_beta) %>%
filter( (abs(alpha-risks[1])<1e-05) & (abs(risks[2]-beta)<1e-05) & (termcd==1)) %>%
slice(which.min(asn_avg)) %>% arrange(q,p_alpha,p_beta) %>% as.data.frame()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.