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

show,STBP-methodR Documentation

Displays results from a "STBP" object nicely

Description

Method for signature "STBP" to show results.

Usage

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

Arguments

object

Created as a result of a call to stbp_simple or stbp_composite.

Value

A summary of the test.

Examples

set.seed(101)
counts3 <- rpois(5, lambda = 3)

test1F <- stbp_composite(data = counts3,
                          greater_than = TRUE,
                          hypothesis = 5,
                          density_func = "poisson",
                          prior = 0.5,
                          lower_bnd = 0,
                          upper_bnd = Inf,
                          lower_criterion = 0.001,
                          upper_criterion = 0.999)
show(test1F)
# returns "reject H".

counts10 <- matrix(rep(0, 30), 10, 3)

test1G <- stbp_simple(data = counts10,
                        density_func= "poisson",
                        prior = 0.5,
                        upper_bnd = Inf,
                        lower_criterion = 0,
                        upper_criterion = 0.9999)
show(test1G)

# returns "keep sampling" due to insufficient evidence.

## End (Not run)

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