Learn R Programming

gsDesign (version 3.5.0)

as_table: Create a summary table

Description

Create a tibble to summarize an object; currently only implemented for gsBinomialExact.

Usage

as_table(x, ...)

# S3 method for gsBinomialExact as_table(x, ...)

Value

A tibble which may have an extended class to enable further output processing.

Arguments

x

Object to be summarized.

...

Other parameters that may be specific to the object.

Details

Currently only implemented for gsBinomialExact objects. Creates a table to summarize an object. For gsBinomialExact, this summarized operating characteristics across a range of effect sizes.

See Also

vignette("binomialSPRTExample")

Examples

Run this code
b <- binomialSPRT(p0 = .1, p1 = .35, alpha = .08, beta = .2, minn = 10, maxn = 25)
b_power <- gsBinomialExact(
  k = length(b$n.I), theta = seq(.1, .45, .05), n.I = b$n.I,
  a = b$lower$bound, b = b$upper$bound
)
b_power %>%
  as_table() %>%
  as_gt()

Run the code above in your browser using DataLab