Skip to contents

For two-arm two-stage design, obtains bias for a single true response rate.

Usage

pwb2stage(N = 2428, theta0 = 0.2, theta1 = 0.15, nsims = 10000)

Arguments

N

Maximum sample size

theta0

true response probability for control arm

theta1

true response probability for treatment arm

nsims

number of simulations (default 1e4)

Value

list of length 2: ests: estimates mc.error