power: Power of a two-stage curtail trial

Description Usage Arguments Examples

View source: R/single-stage-design.r View source: R/two-stage-design.R

Description

This function returns the power (probability of rejecting the null hypothesis when the alternative hypothesis is true) of all designs contained in a two-stage curtail trial object

Usage

1
power(x)

Arguments

x

a two-stage curtailed trial object

Examples

1
2
3
trials <- two_stage_curtail_trial(p1_null = 0.8, p2_null=0.2, 
p1_alt = 0.8, p2_alt = 0.4, n_total=36, prob_early=0.2, alpha=0.05)
power(trials)

kaneplusplus/curtail documentation built on May 24, 2019, 2:04 a.m.