Description Usage Arguments Value Examples
View source: R/hmi_smallfunctions.R
Function to sample values in a variable from other (observed) values in this variable. So this imputation does not use further covariates.
| 1 | sample_imp(variable)
 | 
| variable | A vector of size  | 
A n x 1 data.frame with the observed and imputed data
| 1 2 | set.seed(123)
sample_imp(c(1, NA, 3, NA, 5))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.