This class extends the TestThenPool class to implement the Test-Then-Pool framework for equivalence trials.
Details
The TestThenPoolEquivalence class provides methods for testing and inference in equivalence trials using the Test-Then-Pool framework.
Super classes
Model -> TestThenPool -> TestThenPoolEquivalence
Methods
Inherited methods
Model$calibrate_for_design()Model$check_data()Model$create()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$print_model_summary()Model$simulation_for_given_treatment_effect()Model$summary_rows()TestThenPool$credible_interval()TestThenPool$empirical_bayes_update()TestThenPool$inference()TestThenPool$plot_test_pvalue_vs_drift()TestThenPool$plot_test_vs_drift()TestThenPool$posterior_cdf()TestThenPool$posterior_ess()TestThenPool$posterior_median()TestThenPool$posterior_pdf()TestThenPool$posterior_to_RBesT()TestThenPool$prior_cdf()TestThenPool$prior_elir_ess()TestThenPool$prior_pdf()TestThenPool$prior_to_RBesT()TestThenPool$sample_posterior()TestThenPool$sample_prior()TestThenPool$test_decision()TestThenPool$vectorised_replicate_inference()
TestThenPoolEquivalence$new()
Initializes a TestThenPoolEquivalence object.
Usage
TestThenPoolEquivalence$new(prior, mcmc_config = NULL)TestThenPoolEquivalence$test_pvalue()
Performs the test in the Test-Then-Pool framework for equivalence.
TestThenPoolEquivalence$vectorised_test_pvalue()
Equivalence test p-value for every replicate at once.
inference() calls test() without a test type, so the t-test default
is the one that runs in the simulation.
TestThenPoolEquivalence$vectorised_pool()
Rejecting equivalence's null means the studies are close enough to pool.