Skip to contents

The calibrated power prior of GaussianPDCCPP for a binary endpoint: the power parameter is given by the same rule, applied to the estimated risk differences and their standard errors, the target data are analysed with the binomial conditional power prior of BinomialCPP at that power parameter, and the calibration parameter is calibrated on the exact type I error of this binomial analysis rather than on the closed form of a normal one; see the comment at the top of R/binomial_pdccpp.R.

The calibration needs the design, which Model$calibrate_for_design() records, and the critical value the analysis decides at, which is only known once a replicate is analysed, so it runs at the first replicate.

Super classes

Model -> MCMCModel -> BinomialCPP -> BinomialPDCCPP

Public fields

method

Method name.

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.

null_space

Side of the null hypothesis space.

theta_0

Boundary of the null hypothesis space.

design

The target data of the design calibrated against.

calibration

The calibration parameter and its exact type I error.

Methods

Inherited methods


BinomialPDCCPP$new()

Initialize a BinomialPDCCPP model.

Usage

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

Arguments

prior

The prior object.

theta_0

Boundary of the null hypothesis space.

null_space

Side of the null hypothesis space.

mcmc_config

The MCMC configuration; only the quadrature engine is supported.


BinomialPDCCPP$calibrate_for_design()

Record the design the calibration is computed for.

Usage

BinomialPDCCPP$calibrate_for_design(target_data)

Arguments

target_data

Target study data for the scenario.

Returns

NULL, invisibly.


BinomialPDCCPP$ensure_calibrated()

Calibrate, if not done yet for the current design and critical value.

Usage

BinomialPDCCPP$ensure_calibrated(workers = 1L)

Arguments

workers

Number of processes for the null table.

Returns

The calibration, invisibly.


BinomialPDCCPP$empirical_bayes_update()

Set the power parameter from the replicate's estimates.

Usage

BinomialPDCCPP$empirical_bayes_update(target_data)

Arguments

target_data

Target study data.


BinomialPDCCPP$prior_elir_ess()

ELIR effective sample size of the current prior, interpolated over the power parameter; see binomial_power_prior_unit_elir().

Usage

BinomialPDCCPP$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.


BinomialPDCCPP$clone()

The objects of this class are cloneable with this method.

Usage

BinomialPDCCPP$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.