An R6 class representing a Bayesian model using RBesT.
Super class
Model -> Model_RBesT
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()Model$inference_cache_scope()Model$plot_pdfs()Model$plot_posterior_pdf()Model$plot_prior_pdf()Model$posterior_beta_mixture()Model$posterior_ess()Model$posterior_quantile()Model$print_model_summary()Model$prior_elir_ess()Model$simulation_for_given_treatment_effect()Model$summary_rows()Model$test_decision()
Model_RBesT$prior_pdf()
Calculates the prior probability density function (PDF) for a given target treatment effect.
Model_RBesT$prior_cdf()
Calculates the prior cumulative distribution function (CDF) for a given target treatment effect.
Model_RBesT$posterior_pdf()
Calculates the posterior probability density function (PDF) for a given target treatment effect.
Model_RBesT$posterior_cdf()
Calculates the posterior cumulative distribution function (CDF) for a given target treatment effect.
Model_RBesT$vectorised_prior_components()
Prior mixture components for each replicate
Subclasses return the weights, means and sds of their prior, either
as vectors shared by every replicate or as matrices with one row per
replicate. Returning NULL disables the vectorised path.
Model_RBesT$vectorised_posterior_parameters()
Posterior parameters reported by the vectorised path
Arguments
posteriorPosterior mixture returned by
normal_mixture_posterior().
Model_RBesT$vectorised_replicate_inference()
Run every replicate at once
Usage
Model_RBesT$vectorised_replicate_inference(
target_data,
samples,
to_return,
critical_value,
theta_0,
confidence_level,
null_space
)Arguments
target_dataTarget study data.
samplesData frame of generated replicates.
to_returnCharacter vector of requested outputs.
critical_valueCritical value for hypothesis testing.
theta_0Null hypothesis value.
confidence_levelConfidence level for the credible interval.
null_spaceThe null space for hypothesis testing.