Skip to contents

The normalized power prior for a binary endpoint, with the binomial likelihoods of the two arms of each study and a risk difference shared by the source and target studies, as in BinomialCPP. The power parameter has a Beta prior, specified by its mean and standard deviation as in GaussianNPP, and is integrated out exactly rather than through a normal approximation of the likelihood. The posterior is computed on a lattice of response rates; see binomial_npp_prior_kernels().

Super classes

Model -> MCMCModel -> BinomialLatticePrior -> BinomialNPP

Public fields

power_parameter_mean

Mean of the Beta prior on the power parameter.

power_parameter_std

Standard deviation of the Beta prior.

p

Shape parameter of the Beta prior.

q

Shape parameter of the Beta prior.

method

Name of the method.

Methods

Inherited methods


BinomialNPP$summary_rows()

Rows of the model summary, with the prior on the power parameter

Usage

BinomialNPP$summary_rows()

Returns

A data frame with columns Attribute and Value.


BinomialNPP$new()

Initialize a BinomialNPP model.

Usage

BinomialNPP$new(prior, mcmc_config)

Arguments

prior

The prior object, with power_parameter_mean and power_parameter_std among its method parameters.

mcmc_config

The MCMC configuration; only the quadrature engine is supported.


BinomialNPP$kernels()

The prior kernels, computed once per worker and shared.

Usage

BinomialNPP$kernels()

Returns

The output of binomial_npp_prior_kernels().


BinomialNPP$kernel_key()

What identifies the prior, for the ELIR cache.

Usage

BinomialNPP$kernel_key()

Returns

A list.


BinomialNPP$compute_posterior_parameters()

Record the posterior mean and standard deviation of the power parameter.

Usage

BinomialNPP$compute_posterior_parameters()


BinomialNPP$clone()

The objects of this class are cloneable with this method.

Usage

BinomialNPP$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.