Class to house the latent random variables that govern toxicity and efficacy
events in patients. Instances of this class can be used in simulation-like
tasks to effectively use the same simulated individuals in different designs,
thus supporting reduced Monte Carlo error and more efficient comparison. This
class differs from PatientSample in that the latent variables
that underlie efficacy and toxicity events, and therefore those events
themselves, are correlated, e.g. for positive association, a patient that
experiences toxicity has increased probability of experiencing efficacy too.
Correlated uniformly-distributed variables are obtained by inverting
bivariate normal variables. The extent to which the events are correlated is
controlled by rho, the correlation of the two normal variables.
escalation::PatientSample -> CorrelatedPatientSample
num_patients(`integer(1)`)
mu(`numeric(2)`)
sigma(`matrix(2, 2)`)
new()Creator.
CorrelatedPatientSample$new(num_patients = 0, rho = 0)num_patients(`integer(1)`).
rho(`integer(1)`) correlation of
[CorrelatedPatientSample].
expand_to()Expand sample to size at least num_patients
CorrelatedPatientSample$expand_to(num_patients)num_patients(`integer(1)`).
clone()The objects of this class are cloneable with this method.
CorrelatedPatientSample$clone(deep = FALSE)deepWhether to make a deep clone.
Sweeting, M., Slade, D., Jackson, D., & Brock, K. (2023). Potential outcome simulation for efficient head-to-head comparison of adaptive dose-finding designs. Preprint.