freq_binom_one_onestage: Bayesian single-arm single-endpoint minimum sample size

Description Usage Arguments Value Examples

Description

Generate minimum sample size for the frequentist single-endpoint single-arm trial. Also provided a shiny app to evaluate the same thing with both frequentist and Bayesian methods side by side.

Usage

1
2
3
4
freq_binom_one_onestage(p0, p1, alpha, power, prior.a=0, prior.b=0, 
 round=TRUE)

shiny_binom_single_onestage()

Arguments

p0

Probability of success under H0

p1

Probability of success under H1

alpha

The largest allowed value for the frequentist type one error

power

The smallest allowed frequentist power

prior.a,prior.b

The prior parameters for the beta prior distribution

round

Optionally round the probability outputs to 3 significant figures

Value

Returns an object of class trialDesign_binom_one

Examples

1
2
3
4
5
6
7
p0=0.1
p1=0.3
alpha=0.1
power=0.8
prior.a=0
prior.b=0
freq_binom_one_onestage(p0,p1,alpha,power,prior.a,prior.b)

finite2/Eurosarc_bayes documentation built on May 16, 2019, 12:53 p.m.