A class for binary target data objects.
Super class
TargetData -> BinaryTargetData
Public fields
control_rateRate in the control arm of the target study
treatment_rateRate in the treatment arm of the target study
Methods
Inherited methods
BinaryTargetData$new()
Initializes the binary target data object.
Usage
BinaryTargetData$new(
source_data,
sampling_approximation,
target_sample_size_per_arm,
control_drift,
treatment_drift,
summary_measure_likelihood
)BinaryTargetData$samples_from_counts()
The replicate rows a trial with the given responder counts
is analysed from. generate() draws the counts and
enumerate_support() lists them, and both build their rows here, so
the two cannot disagree on what a trial looks like to the analysis.
BinaryTargetData$enumerate_support()
Every trial outcome with non-negligible probability, with
its probability, so that an operating characteristic can be computed
as an exact weighted sum over trials instead of a Monte Carlo average.
Each arm's responder count is kept between its tail_mass / 4 and
1 - tail_mass / 4 binomial quantiles, so at most tail_mass is left
out across both arms, and the weights, the product of
the two binomial probabilities, are renormalised over the pairs kept.