Skip to contents

The KL-calibrated normalized power prior of GaussianNPP_KL for a binary endpoint: the Beta prior on the power parameter is calibrated to the design with the criterion of calibrate_npp_kl(), the posterior of the power parameter under the two hypothetical results being computed from the binomial marginal likelihood (npp_kl_calibrate_design_binomial()), and the target data are analysed with the binomial normalized power prior, BinomialNPP, under that prior. The shape parameters are NULL until Model$calibrate_for_design() has run.

Super classes

Model -> MCMCModel -> BinomialLatticePrior -> BinomialNPP -> BinomialNPP_KL

Public fields

method

Name of the method.

theta_0

Boundary of the null hypothesis space.

null_space

The null hypothesis space, which gives the benefit direction.

calibration

The result of calibrate_npp_kl() for this scenario.

calibration_settings

The criterion settings read from the method parameters.

Methods

Inherited methods


BinomialNPP_KL$new()

Initialize a BinomialNPP_KL model.

Usage

BinomialNPP_KL$new(prior, theta_0, null_space, mcmc_config)

Arguments

prior

The prior object.

theta_0

Value of the treatment effect under the null hypothesis.

null_space

The null hypothesis space, either "left" or "right".

mcmc_config

The MCMC configuration; only the quadrature engine is supported.


BinomialNPP_KL$calibrate_for_design()

Calibrate the prior on the power parameter to this design, with the criterion of calibrate_npp_kl() evaluated on the binomial marginal likelihood; see npp_kl_calibrate_design_binomial().

Usage

BinomialNPP_KL$calibrate_for_design(target_data)

Arguments

target_data

Target study data for the scenario.

Returns

The calibration, invisibly.


BinomialNPP_KL$compute_posterior_parameters()

Record the posterior moments of the power parameter and the calibration, which is constant within a scenario.

Usage

BinomialNPP_KL$compute_posterior_parameters()


BinomialNPP_KL$clone()

The objects of this class are cloneable with this method.

Usage

BinomialNPP_KL$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.