Learn R Programming

basksim (version 1.0.0)

get_results: Get Results for Simulation of Basket Trial Designs

Description

Get Results for Simulation of Basket Trial Designs

Usage

get_results(design, ...)

Value

A matrix of results with iter rows. A 0 means, that the null hypothesis that the response probability exceeds p0 was not rejected, a 1 means, that the null hypothesis was rejected.

Arguments

design

An object created with one of the setup functions.

...

Further arguments.

Examples

Run this code
# Example for a basket trial with Fujikawa's Design
design <- setup_fujikawa(k = 3, p0 = 0.2)
get_results(design = design, n = 20, p1 = c(0.2, 0.5, 0.5), lambda = 0.95,
  epsilon = 2, tau = 0, iter = 100)

Run the code above in your browser using DataLab