Skip to contents

The empirical Bayes power prior of Gravestock and Held (2017) for a binary endpoint: the power parameter maximizes the marginal likelihood of the target data under the binomial power prior of BinomialCPP, and the target data are analysed with that power prior. Unlike GaussianGravestockEBPP, which uses the closed form of a normal likelihood, the marginal likelihood is that of the binomial likelihoods of both arms, computed on the lattice of binomial_power_prior_posterior().

Super classes

Model -> MCMCModel -> BinomialCPP -> BinomialGravestockEBPP

Public fields

empirical_bayes

The prior depends on the target data.

empirical_bayes_from_sample

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

fixed_power_parameter

The power parameter changes between replicates.

method

Method name.

Methods

Inherited methods


BinomialGravestockEBPP$new()

Initialize a BinomialGravestockEBPP model.

Usage

BinomialGravestockEBPP$new(prior, mcmc_config)

Arguments

prior

The prior object.

mcmc_config

The MCMC configuration. Only the quadrature engine is supported.


BinomialGravestockEBPP$empirical_bayes_update()

Set the power parameter from the replicate's counts.

Usage

BinomialGravestockEBPP$empirical_bayes_update(target_data)

Arguments

target_data

Target study data.


BinomialGravestockEBPP$quadrature_posterior()

The posterior on a grid, at the estimated power parameter.

Usage

BinomialGravestockEBPP$quadrature_posterior(target_data)

Arguments

target_data

The target study data.

Returns

A grid_posterior() list.


BinomialGravestockEBPP$prior_elir_ess()

ELIR effective sample size of the current prior, interpolated over the power parameter as for the p-value-based power prior; see binomial_power_prior_unit_elir().

Usage

BinomialGravestockEBPP$prior_elir_ess(target_data, simulation_config)

Arguments

target_data

Target study data.

simulation_config

Configuration of the simulation study.

Returns

The ELIR effective sample size.


BinomialGravestockEBPP$clone()

The objects of this class are cloneable with this method.

Usage

BinomialGravestockEBPP$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.