Skip to contents

This class represents a Gaussian Commensurate Prior model: the commensurability link of Hobbs et al. (2011) without the power parameter, so that \(\theta_T | \theta_S, \tau \sim N(\theta_S, 1 / \tau)\) and the source likelihood enters undiscounted. Borrowing is then governed by the commensurability precision \(\tau\) alone.

Formally it is GaussianCommensuratePowerPrior at \(\gamma = 1\), which is why it inherits from it: the data preparation, the three heterogeneity prior families, the Stan program and the quadrature mixture are all the same machinery, selected by borrows_power_parameter. Only the members that mention \(\gamma\) are overridden here.

Super classes

Model -> MCMCModel -> GaussianCommensuratePowerPrior -> GaussianCommensuratePrior

Public fields

method

Method name

borrows_power_parameter

Always FALSE for this model

stan_model_prefix

Prefix of the compiled Stan model's name

summary_variables

Variables to summarise from the posterior draws

Methods

Inherited methods


GaussianCommensuratePrior$new()

Initialize the GaussianCommensuratePrior object

Usage

GaussianCommensuratePrior$new(prior, mcmc_config)

Arguments

prior

The prior object

mcmc_config

The MCMC configuration parameters


GaussianCommensuratePrior$compute_posterior_parameters()

Compute posterior parameters

Usage

GaussianCommensuratePrior$compute_posterior_parameters()


GaussianCommensuratePrior$joint_prior_pdf()

Joint prior p.d.f. of the treatment effect and the commensurability parameter. Equation (8) in Hobbs et al (2011) with the power parameter fixed at one, so the Beta factor is absent and this takes one fewer argument than the power prior's version.

Usage

GaussianCommensuratePrior$joint_prior_pdf(treatment_effect, tau)

Arguments

treatment_effect

Treatment effect

tau

Heterogeneity parameter


GaussianCommensuratePrior$clone()

The objects of this class are cloneable with this method.

Usage

GaussianCommensuratePrior$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.