imputed | R Documentation |
Using a gerbil
object as an input, this function returns imputed datasets.
imputed(gerb, imp = 1)
gerb |
A |
imp |
The imputed datasets which are to be returned (defaults to |
The function either return a single imputed dataset (if imp
is a scalar) or a tall dataset if (if imp
is a vector) with the individual datsets stacked on top of each other.
imputed()
returns a data frame or matrix. If imp
has multiple elements, columns are added to indicate the imputation number and the case ID.
#Load the India Human Development Survey-II dataset data(ihd_mcar) # Create a gerbil object imps.gerbil <- gerbil(ihd_mcar, m = 5, ords = "education_level", semi = "farm_labour_days", bincat = "job_field", n.cores = 1) # Return a single imputed datasets imp.gerb <- imputed(imps.gerbil, imp = 2) # Return multiple (stacked) datasets imp.gerb <- imputed(imps.gerbil, imp = 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.