weighted_j2r {dejaVu} | R Documentation |
Create a weighted_j2r ImputeMechanism
object
Description
Missing counts for a subject in the active treatment arm will be imputed according to a point
(determined by trt.weight
) between the means of the placebo and treatment arms,
conditioned on the number of events. Missing counts for subjects in the
placebo arm will be imputed according to the mean of the placebo arm, conditioned
on the subject's observed number of events.
Usage
weighted_j2r(trt.weight, delta = c(1, 1), proper = TRUE)
Arguments
trt.weight |
See details |
delta |
If |
proper |
If |
Details
If trt.weight
= 0 then imputation using this mechanism will follow
the jump to reference (j2r) model whereby missing counts for subjects
in both arms will be imputed according to the mean of the placebo arm
conditioned on the subject's observed number of events
If trt.weight
= 1 then imputation using this mechanism will follow
the MAR model whereby missing counts for subjects
in each arm will be imputed according to the event rate of subjects in its treatment group
conditioned on the subject's observed number of events
See the User guide vignette for further details
Value
An ImputeMechanism
object
See Also
Examples
sim <- SimulateComplete(study.time=365,number.subjects=50,
event.rates=c(0.01,0.005),dispersions=0.25)
sim.with.MCAR.dropout <- SimulateDropout(sim,
drop.mechanism = ConstantRateDrop(rate = 0.0025))
fit <- Simfit(sim.with.MCAR.dropout)
imps <- Impute(fit, weighted_j2r(trt.weight=0), 10)