# Bayes Factor Design for Two-Arm Binomial Trials

## Documentation for package ‘bfbin2arm’ version 0.1.4

- DESCRIPTION file
- User guides, package vignettes and other documentation

## Help Pages

.sustained_singlearm_feasibility | Check sustained feasibility over future n
as.data.frame.singlearm_onestage_bf_design | Convert a one-stage single-arm BF design to a data frame
BFminus0 | Bayes factor BF-0: H- vs H0
BFminus1 | Bayes factor BF-1: H- vs H1
BFplus0 | Bayes factor BF+0: H+ vs H0
BFplus1 | Bayes factor BF+1: H+ vs H1
BFplusMinus | Bayes factor BF+-: H+ vs H-
design_singlearm_bf | Design or evaluate a single-arm two-stage Bayes factor trial
design_singlearm_onestage_bf | Design or evaluate a one-stage single-arm Bayes factor trial
design_singlearm_onestage_rope | Calibrate a one-stage single-arm ROPE design for a binomial endpoint
design_twoarm_onestage_bf | Design or evaluate a one-stage two-arm Bayes factor trial
design_twoarm_twostage_bf | Design an optimal two-stage two-arm Bayes factor trial
ntwoarmbinbf01 | Sample size calibration for two-arm binomial Bayes factor designs
optimal_onestage_singlearm_bf | Internal calibration routine for one-stage single-arm BF designs
optimal_onestage_twoarm_bf | Internal calibration routine for one-stage two-arm BF designs
optimal_twostage_2arm_bf | Optimal two-stage two-arm Bayes-factor design for binary endpoints
optimal_twostage_singlearm_bf | Optimal two-stage single-arm Bayes factor design
plot.singlearm_bf_design | Plot a single-arm Bayes factor design
plot.singlearm_onestage_bf_design | Plot a one-stage single-arm BF design
plot_twostage_2arm_bf | Plot an optimal two-stage two-arm Bayes factor design
postProbHminus | Posterior probability P(p2 <= p1 | data)
postProbHplus | Posterior probability P(p2 > p1 | data) under independent Beta priors
powerbinbf01seq | Bayesian and frequentist operating characteristics for a single-arm two-stage BF design
powerbinbf01_fixed | Bayesian and frequentist operating characteristics for a fixed-sample single-arm BF design
powertwoarmbinbf01 | Bayesian power, type-I error, and PCE(H0) for two-arm binomial Bayes factors
predictiveDensityH0 | Predictive density under H0: p1 = p2 = p
predictiveDensityH1 | Predictive density under H1: p1 != p2
predictiveDensityHminus_trunc | Predictive density under H-: p2 <= p1 (truncated prior)
predictiveDensityHplus_trunc | Predictive density under H+: p2 > p1 (truncated prior)
print.singlearm_onestage_bf_design | Print method for one-stage single-arm BF designs
print.summary.singlearm_bf_design | Print method for summary.singlearm_bf_design
print.summary.singlearm_onestage_bf_design | Print method for summaries of one-stage single-arm BF designs
priorProbHminus | Prior probability P(p2 <= p1) under independent Beta priors
priorProbHplus | Prior probability P(p2 > p1) under independent Beta priors
summary.singlearm_bf_design | Summary for single-arm BF designs
summary.singlearm_onestage_bf_design | Summarize a one-stage single-arm BF design
twoarmbinbf01 | Two-arm binomial Bayes factor BF01
twoarmbinbf_plus0_direct | Bayes factor BF+0 for the directional alternative vs point-null