copy_reference: Create a copy reference 'ImputeMechanism' object

Description Usage Arguments Value See Also Examples

View source: R/copyRefImpute.r

Description

Missing counts for subjects in both arms are imputed by assuming the rate before and dropout are both equal to the control (reference) estimated rate. This corresponds to what is usually termed the copy reference assumption.

Usage

1
copy_reference(proper = TRUE)

Arguments

proper

If proper=TRUE then proper imputation is performed, in which each imputation is created based on parameters values drawn from the (approximate) posterior distribution of the imputation model. If proper=FALSE, improper imputation is performed. This means all imputed datasets are generated conditional on the maximum likelihood estimates of the parameters.

Value

An ImputeMechanism object

See Also

ImputeMechanism.object

Examples

1
2
3
4
5
6
7
 
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, copy_reference(), 10)

dejaVu documentation built on April 27, 2021, 5:07 p.m.