freq_binom_two_singlestage {EurosarcBayes}R Documentation

Frequentist single-arm two-endpoint trial sample size

Description

Generate minimum sample size for the frequentist two-endpoint single-arm trial.

Usage

freq_binom_two_singlestage(r0, r1, t0, t1, power, alpha.r, nmax = 100,
	alpha.t = alpha.r, nmin = 1, adjust = TRUE)

Arguments

r0

Null hypothesis for the response endpoint

r1

Alternative hypothesis for the response endpoint

t0

Null hypothesis for the toxicity endpoint

t1

Alternative hypothesis for the toxicity endpoint

power

Required power for the trial design

alpha.r

The maximum size for the type one error for the response endpoint

nmax

Maximum sample size to look for solutions. Default 100

alpha.t

The maximum size for the type one error for the toxicity endpoint. Optional

nmin

Minimum sample size to look for solution, Default 1

adjust

Boolean about whether to adjust for multiple endpoints or not

Value

Returns an object of class binom_two_singlestage. This can be transformed into an object of class trialDesign_binom_two using properties (see properties) and supplying the necessary values.

See Also

properties

Examples

r1=0.35
r0=0.2
t0=0.3
t1=0.1

power=0.8
alpha=0.1

nmax=50
out_single=freq_binom_two_singlestage(r0,r1,t0,t1,power,alpha,nmax,adjust=TRUE)

########################################
# Information for properties
## Frequentist simulations
# modelled toxicity probability
t=c(0.1,0.3,0.1,0.3)
# modelled response probability
r=c(0.35,0.2,0.2,0.35)

## Bayesian uniform prior
pra=1;prb=1;pta=1;ptb=1
## bayesian cutoffs
futility_critical_value=0.35
efficacy_critical_value=0.2
toxicity_critical_value=0.1
no_toxicity_critical_value=0.3

single_stage=properties(out_single,t,r,pra,prb,pta,ptb,futility_critical_value,
	efficacy_critical_value,toxicity_critical_value,no_toxicity_critical_value)

single_stage

[Package EurosarcBayes version 1.1 Index]