A class representing a Binomial Conditional Power Prior model.
Public fields
power_parameterThe power parameter for the model
methodMethod name
stan_priorStan prior model
stan_prior_codeStan code for the prior
fixed_power_parameterWhether the power parameter is the same for every replicate, so that the posterior is read off a cached prior kernel.
Methods
Inherited methods
Model$calibrate_for_design()Model$check_data()Model$create()Model$empirical_bayes_update()Model$estimate_bayesian_operating_characteristics()Model$estimate_frequentist_operating_characteristics()Model$hypothesis_space_transformation()Model$inference_cache_scope()Model$plot_pdfs()Model$plot_posterior_pdf()Model$plot_prior_pdf()Model$posterior_beta_mixture()Model$posterior_mean()Model$posterior_moments()Model$posterior_quantile()Model$posterior_to_RBesT()Model$print_model_summary()Model$prior_elir_ess()Model$prior_to_RBesT()Model$simulation_for_given_treatment_effect()Model$test_decision()Model$vectorised_replicate_inference()MCMCModel$check_mcmc_config()MCMCModel$compute_posterior_parameters()MCMCModel$credible_interval()MCMCModel$inference()MCMCModel$posterior_cdf()MCMCModel$posterior_ess()MCMCModel$posterior_median()MCMCModel$posterior_pdf()MCMCModel$prior_cdf()MCMCModel$prior_pdf()MCMCModel$sample_posterior()MCMCModel$sample_prior()MCMCModel$stan_sampler()MCMCModel$uses_quadrature()
BinomialCPP$summary_rows()
Rows of the model summary, with the power parameter
A power parameter set from each replicate's data is already among the
posterior_parameters rows, so it is only added when it is fixed.
BinomialCPP$new()
Initialize an instance of the BinomialCPP class.
Usage
BinomialCPP$new(prior, mcmc_config)BinomialCPP$quadrature_posterior()
The posterior on a grid, under the quadrature engine
The same model as the Stan program, with the current power parameter.
Returns
A grid_posterior() list.
BinomialCPP$quadrature_prior()
The prior on a grid, under the quadrature engine: the same model without target patients, as in the Stan prior program.
Returns
A grid_posterior() list.
BinomialCPP$prior_given_control_rate()
The prior of the treatment effect given the target control rate
The power prior of quadrature_prior() with the target control rate
fixed rather than integrated out, so the effect is confined to the
range that rate leaves it.