Skip to contents

This class pools the source and target studies before analysing them with a uniform prior on each arm response rate. The posterior is available in closed form, so it inherits from the BinomialConjugate class rather than sampling.

Super classes

Model -> BinomialConjugate -> BinomialPooling

Public fields

method

Method name

Methods

Inherited methods


BinomialPooling$prepare_data()

Assemble the pooled event counts of the source and target studies

Usage

BinomialPooling$prepare_data(target_data)

Arguments

target_data

The target data for the analysis.

Returns

List of event counts the posterior conditions on


BinomialPooling$prior_given_control_rate()

The prior of the treatment effect given the target control rate

Pooling treats the source study's patients as the target's, so before any target patient is seen the response rates follow the source posterior under uniform priors, the two arms independently. Given the control rate, the treatment effect is the treatment rate less that rate, the treatment rate following its source posterior. The inherited marginal prior, a uniform prior on each arm, is the one pooling updates rather than the one its analysis assumes about the target.

Usage

BinomialPooling$prior_given_control_rate(control_rate)

Arguments

control_rate

The target control rate.

Returns

A list of three functions of the treatment effect: cdf, pdf, and sample, which takes the number of draws.


BinomialPooling$clone()

The objects of this class are cloneable with this method.

Usage

BinomialPooling$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.