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)

EurosarcBayes documentation built on Nov. 17, 2017, 7:03 a.m.