binom_prst: Probability Ratio Sequential Test (PRST)

View source: R/binom_prst.R

binom_prstR Documentation

Probability Ratio Sequential Test (PRST)

Description

binom_prst returns parameters defining a PRST for the binomial distribution as developed by Abraham Wald.

Usage

binom_prst(
  p0 = p0,
  p1 = p1,
  m = m,
  alpha = 0.1,
  beta = 0.1,
  r = NULL,
  t = NULL
)

Arguments

p0

The minimum acceptable probability of failure.

p1

The maximum acceptable probability of failure. This value must be greater than p0.

m

An integer indicating the maximum number of units allowable for test.

alpha

The producer's risk of rejecting equipment with probability of failure p < p0 (the probility of rejecting good equipment). Default = 0.10.

beta

The consumer's risk of accepting equipment with probability of failure p > p1. (the probility of accepting bad equipment). Default = 0.10.

r

(Optional, default as NULL) The cumulative number of failures up to the number of units tested, t. If specified it must be of equal length to t.

t

(Optional, default as NULL) The cumulative number of units tested. If specified it must be of equal length to r.

Value

The output will return a table indicating when to accept or reject the equipment based on the number of units tested and failures observed. The binomial prst plot will be printed, along with the Operating Characteristic Curve and Average Sample Number plot.

References

Wald, Abraham. Sequential Analysis. John Wiley & Sons, 1947.

See Also

exp_prst, exp_prst_plot

Examples

binom_prst(p0 = 0.05, p1 = 0.10, m=300, alpha=0.10, beta=0.10)
binom_prst(p0 = 0.05, p1 = 0.10, m=300, alpha=0.10, beta=0.20)
binom_prst(p0 = 0.05, p1 = 0.10, m=300, alpha=0.05, beta=0.20)


jjw3952/mcotear documentation built on Sept. 2, 2023, 10:30 a.m.