Skip to contents

The empirical robust mixture prior of Egidi et al. (2022) for a binary endpoint, on the components of BinomialRMP: for each dataset, the weight of the weak component is the smallest on the grid at which the prior-predictive conflict p-value of the observed counts reaches alpha_pc, the p-value being computed exactly from the components' prior-predictive tables (see egidi_select_weak_weight_binomial()).

Super classes

Model -> MCMCModel -> BinomialLatticePrior -> BinomialRMP -> BinomialEgidiMixture

Public fields

alpha_pc

Conflict threshold.

pvalue_method

Conflict p-value method.

weight_grid_step

Resolution of the weight scan.

selection

The selection of the current dataset.

quantile_summary_columns

Columns summarised by quantiles across replicates.

empirical_bayes

The prior depends on the target data.

empirical_bayes_from_sample

The prior is a function of the replicate's sample alone.

method

Method name.

Methods

Inherited methods


BinomialEgidiMixture$new()

Initialize the model.

Usage

BinomialEgidiMixture$new(prior, mcmc_config)

Arguments

prior

The prior object.

mcmc_config

The MCMC configuration; only the quadrature engine is supported.


BinomialEgidiMixture$empirical_bayes_update()

Choose the weight from the replicate's counts.

Usage

BinomialEgidiMixture$empirical_bayes_update(target_data)

Arguments

target_data

Target study data.


BinomialEgidiMixture$quadrature_posterior()

The posterior on a grid, from the two components' kernels and the weight, without forming the mixture kernel; see binomial_rmp_posterior().

Usage

BinomialEgidiMixture$quadrature_posterior(target_data)

Arguments

target_data

The target study data.

Returns

The list binomial_npp_posterior() returns.


BinomialEgidiMixture$compute_posterior_parameters()

Record the posterior weight and the selection.

Usage

BinomialEgidiMixture$compute_posterior_parameters()


BinomialEgidiMixture$prior_elir_ess()

ELIR effective sample size of the current prior. The prior changes between datasets only through its weight, so the unit-scale ELIR is computed at weights 0, 0.05, ..., 1, once per worker, and interpolated linearly.

Usage

BinomialEgidiMixture$prior_elir_ess(target_data, simulation_config)

Arguments

target_data

Target study data.

simulation_config

Simulation configuration.

Returns

The ELIR effective sample size.


BinomialEgidiMixture$clone()

The objects of this class are cloneable with this method.

Usage

BinomialEgidiMixture$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.