Skip to contents

The commensurate power prior of GaussianCommensuratePowerPrior for a binary endpoint, with the binomial likelihoods of both arms of each study instead of a normal approximation of the risk difference; see the comment at the top of R/binomial_commensurate.R for the model. The posterior is computed on the lattice of BinomialLatticePrior.

Super classes

Model -> MCMCModel -> BinomialLatticePrior -> BinomialCommensuratePowerPrior

Public fields

method

Method name.

heterogeneity_prior_family

Family of the prior on the commensurability parameter.

borrows_power_parameter

Whether the source likelihood is discounted by a power parameter.

n_tau_nodes

Quadrature nodes on the commensurability parameter, before the adjustments of commensurate_tau_quadrature().

Methods

Inherited methods


BinomialCommensuratePowerPrior$new()

Initialize the model.

Usage

BinomialCommensuratePowerPrior$new(prior, mcmc_config)

Arguments

prior

The prior object.

mcmc_config

The MCMC configuration; only the quadrature engine is supported.


BinomialCommensuratePowerPrior$kernels()

The prior kernels, computed once per worker and shared.

Usage

BinomialCommensuratePowerPrior$kernels()

Returns

The output of binomial_commensurate_prior_kernels().


BinomialCommensuratePowerPrior$kernel_key()

What identifies the prior.

Usage

BinomialCommensuratePowerPrior$kernel_key()

Returns

A list.


BinomialCommensuratePowerPrior$compute_posterior_parameters()

Record the posterior moments of the commensurability parameter and, for the commensurate power prior, of the power parameter.

Usage

BinomialCommensuratePowerPrior$compute_posterior_parameters()


BinomialCommensuratePowerPrior$clone()

The objects of this class are cloneable with this method.

Usage

BinomialCommensuratePowerPrior$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.