rep.plan: Determine the designs of conventional censored repetitive...

Description Usage Arguments Value Examples

View source: R/rep.plan.R

Description

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

Usage

1
2
## S3 method for class 'plan'
rep(risks, p, asvar, pg_bar = TRUE)

Arguments

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 asympt.var() for more details.

Value

A data.frame with the following variables of the censored repetitive design of the sampling plans.

Examples

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()

ULL-STAT/RepetPlan documentation built on Dec. 18, 2021, 5:15 p.m.