show-SPRT-method: Displays results from a "SPRT" object nicely

show,SPRT-methodR Documentation

Displays results from a "SPRT" object nicely

Description

Method for signature "SPRT" to show results or test specification.

Usage

## S4 method for signature 'SPRT'
show(object)

Arguments

object

Created as a result of a call to sprt.

Value

A summary of test results or specification (if data = NA or omitted).

Examples


test00 <- sprt(mu0 = 2,
                mu1 = 4,
                density_func = "negative binomial",
                overdispersion = 4.6,
                alpha = 0.1,
                beta = 0.1)
show(test00) # returns test specification.

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)

sequential.pops documentation built on June 8, 2025, 1:08 p.m.