Description Usage Arguments Details Value Author(s)
View source: R/general_purpose.R
Utility to define a non-repeated dataset after a missing imputation algorithm
with the function mice
has been run and the associated
complete procedure through complete
has been carried out.
1 | def_complete(data, data_key)
|
data |
A |
data_key |
The keying variable in the |
The function acts on numeric variables only and takes a column mean
by considering all the simulations detected given by .imp
. This should
ensure consistent results as given by pool
When a data.frame
is passed, def_complete
internally
converts it to a data.table
but still returns a data.frame
.
Either a data.table
or a data.frame
.
Francesco Grossetti francesco.grossetti@gmail.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.