This class extends the TestThenPool class to implement the Test-Then-Pool framework for difference trials.
Details
The TestThenPoolDifference class provides methods for testing and inference in difference trials using the Test-Then-Pool framework.
Super classes
Model -> TestThenPool -> TestThenPoolDifference
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()
TestThenPoolDifference$new()
Instantiate model
Usage
TestThenPoolDifference$new(prior, mcmc_config = NULL)TestThenPoolDifference$vectorised_test_pvalue()
Difference 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.
TestThenPoolDifference$vectorised_pool()
Failing to detect a difference means the data can be pooled.