toer: Calculate the Type 1 Error Rate for a Basket Trial Design

View source: R/toer.R

toerR Documentation

Calculate the Type 1 Error Rate for a Basket Trial Design

Description

Generic function for calculating the type-1 error rate of a basket trial design. It defaults to the function basksim::toer.

Usage

toer(design, ...)

## Default S3 method:
toer(design, ...)

Arguments

design

An object created with one of the setup functions from the basksim package.

...

Further arguments.

Value

A numeric value.

Examples

design <- setup_fujikawa_x(k = 3, p0 = 0.2)
toer(design = design, n = 20, p1 = c(0.2, 0.5, 0.5), lambda = 0.95,
     design_params = list(epsilon = 2, tau = 0), iter = 100)

baskwrap documentation built on March 19, 2026, 5:09 p.m.