SPRT-class | R Documentation |
This class encapsulates results or specification of a Sequential Probability Ratio Test.
call
(language) The call to sprt
.
data
(numeric, logical) Either a vector with cumulative counts or NA.
hi_int
(numeric) Intercept of the lower stop line.
low_int
(numeric) Intercept of the higher stop line.
slope
(numeric) Slope of stop lines.
recommendation
(character, logical) Either a recommendation on whether to accept H0 or H1, or keep sampling, or NA.
iterations
(numeric) Number of sequential sampling bouts required or processed.
counts <- c(2, 5, 6, 2, 7)
test11 <- sprt(data = counts,
mu0 = 2,
mu1 = 4,
density_func = "negative binomial",
overdispersion = 4.6,
alpha = 0.1,
beta = 0.1)
show(test11) # returns "accept H1" after 5 sampling bouts processed.
## End (Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.