mice.reuse {NADIA}R Documentation

Reuseble mice function

Description

Reuse a previously fit multivariate imputation by chained equations to impute values for previously unseen data without changing the imputation fit (i.e. solely use the original training data to guide the imputation models).

Note: see https://github.com/stefvanbuuren/mice/issues/32 for discussion

Usage

mice.reuse(mids, newdata, maxit = 5, printFlag = TRUE, seed = NA)

Arguments

mids

: mids object An object of class mids, typically produces by a previous call to mice() or mice.mids()

newdata

: data.frame Previously unseen data of the same structur as used to generate 'mids'

maxit

: integer scalar The number of additional Gibbs sampling iterations to refine the new imputations

printFlag

: logical scalar A Boolean flag. If TRUE, diagnostic information during the Gibbs sampling iterations will be written to the command window. The default is TRUE.

seed

: integer scalar An integer that is used as argument by the set.seed() for offsetting the random number generator. Default is to use the last seed value stored in 'mids'

Value

data : list of data.frames the imputations of newdata

lastSeedValue : integer vector the random seed at the end of the procedure

Author(s)

Patrick Rockenschaub git https://github.com/prockenschaub


[Package NADIA version 0.4.2 Index]