Skip to contents

A class for continuous target data objects.

Details

The target study's sampling standard deviation is derived from the source study rather than configured: standard_deviation = target_to_source_std_ratio * source_data$standard_error * sqrt(source_data$equivalent_source_sample_size_per_arm). With the default ratio of 1 it equals the source study's standard deviation, i.e. the adults' in an extrapolation from adults to children.

The variance is treated as known in the analysis: the Bayesian methods use a normal likelihood whose variance is the replicate's squared standard error, plugged in as if it were exact, so the uncertainty in the variance estimate is ignored.

Super class

TargetData -> ContinuousTargetData

Methods

Inherited methods


ContinuousTargetData$new()

Initializes the continuous target data object.

Usage

ContinuousTargetData$new(
  source_data,
  sampling_approximation,
  target_sample_size_per_arm,
  control_drift,
  treatment_drift,
  summary_measure_likelihood,
  target_to_source_std_ratio
)

Arguments

source_data

The source data object.

sampling_approximation

The sampling approximation flag.

target_sample_size_per_arm

The target sample size per arm.

control_drift

The control drift.

treatment_drift

The treatment drift.

summary_measure_likelihood

The summary measure

target_to_source_std_ratio

Ratio between the target and source studies standard deviation


ContinuousTargetData$generate()

Generates samples for the continuous target data object.

Usage

ContinuousTargetData$generate(n_replicates)

Arguments

n_replicates

The number of replicates to generate.

Returns

A data frame containing the generated samples.


ContinuousTargetData$to_dict()

Converts the target data object to a dictionary.

Usage

ContinuousTargetData$to_dict()

Returns

A list representing the target data object.


ContinuousTargetData$clone()

The objects of this class are cloneable with this method.

Usage

ContinuousTargetData$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.