freq_binom_one_landemets: Single arm, two stage, Binomial sample size calculator

Description Usage Arguments Value References Examples

View source: R/freq_binom_one_landemets_v1.0.R

Description

Sample size calculation for single arm, multistage trials using the alpha spending approach to reduce type I and type II error rates. This implimentation uses the O'Brien-Fleming alpha spending function for this purpose.

Usage

1
2
freq_binom_one_landemets(reviews, p0, p1, r=c(p0,p1), 
	alpha=0.1, beta=0.1, prior.a=0, prior.b=0)

Arguments

reviews

A vector of the number of patients to perform interim analysis at

p0

Probability of success under the H0

p1

Probability of success under the H1

r

A vector of probabilities used to perform simulations from

alpha

The largest allowed value for the frequentist type one error

beta

The smallest allowed value for the frequentist type two error

prior.a, prior.b

Prior parameters for the beta prior

Value

Returns an object of class trialDesign_binom_one

References

DeMets, D. L. and G. Lan (1995). The alpha spending function approach to interim data analyses. Cancer Treat Res 75: 1-27.

O'Brien, P. C. and T. R. Fleming (1979). A Multiple Testing Procedure for Clinical Trials. Biometrics 35(3): 549-556.

Examples

1
2
3
4
5
6
7
reviews=c(11,22,33,44)
p0=0.2
p1=0.35
r=c(0.2,0.35)
alpha=0.1
beta=0.2
freq_binom_one_landemets(reviews,p0,p1,r,alpha,beta)

Example output

Loading required package: shiny
Loading required package: VGAM
Loading required package: stats4
Loading required package: splines
Loading required package: data.table
Loading required package: plyr
Loading required package: clinfun
   n futility efficacy
1 11       NA        7
2 22        2        9
3 33        7       10
4 44       11       12

                         Stopping rules R=0.2 R=0.35
1                 Stop early - Futility 66.70   6.67
2                 Stop early - Efficacy 10.82  77.14
3 Continue to final analysis - Efficacy  5.65  11.48
4 Continue to final analysis - Futility 16.83   4.71
5                          Inconclusive  0.00   0.00
6 Expected number of patients recruited 33.52  30.25
Trial design and properties for single arm, single endpoint trial designs

 reviews success failure
      11       7      NA
      22       9       2
      33      10       7
      44      12      11

p0     : 0.2
p1     : 0.35
Alpha  : 16.47
Power  : 88.62
Exp(p0): 33.52
Exp(p1): 30.25
Eta    : 0.179
Zeta   : 0.026 

EurosarcBayes documentation built on May 2, 2019, 9:20 a.m.