Impute {dejaVu} | R Documentation |
Produce imputed data sets
Description
Given a SingleSimFit
object (with impute.parameters not NULL)
and an imputation mechanism,
create a collection of imputed data sets
Usage
Impute(fit, impute.mechanism, N)
Arguments
fit |
A |
impute.mechanism |
An |
N |
The number of data sets to impute |
Value
An ImputeSim
object
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, copy_reference(), 10)
[Package dejaVu version 0.3.1 Index]