sample_imp: Sample imputation.

Description Usage Arguments Value Examples

View source: R/hmi_smallfunctions_2018-05-09.R View source: R/hmi_smallfunctions_2018-04-30.R View source: R/hmi_smallfunctions_2018-02-28.R View source: R/hmi_smallfunctions_2018-01-31.R View source: R/hmi_smallfunctions_2018-01-26.R View source: R/hmi_smallfunctions_2018-01-21.R View source: R/hmi_smallfunctions_2017-12-28.R View source: R/hmi_smallfunctions_2017-12-20.R View source: R/hmi_smallfunctions_2017-11-14.R View source: R/hmi_smallfunctions_2017-09-14.R View source: R/hmi_smallfunctions_2017-09-01.R View source: R/hmi_smallfunctions_2017-02-21.R View source: R/hmi_smallfunctions_2017-02-05.R View source: R/hmi_smallfunctions_2017-01-13.R View source: R/hmi_smallfunctions_2017-01-05.R View source: R/hmi_smallfunctions_2016-12-22_01.R View source: R/hmi_smallfunctions_2016-12-14_04.R View source: R/hmi_smallfunctions_2016-12-14_03.R View source: R/hmi_smallfunctions_2016-12-09_01.R View source: R/hmi_smallfunctions_2016-12-08_01.R View source: R/hmi_smallfunctions_2016-08-02.R View source: R/hmi_smallfunctions_2016-07-21.R View source: R/hmi_smallfunctions_2016-07-14.R View source: R/hmi_smallfunctions.R

Description

Function to sample values in a variable from other (observed) values in this variable. So this imputation doesn't use further covariates.

Function to sample values in a variable from other (observed) values in this variable. So this imputation doesn't use further covariates.

Usage

1
2
3
sample_imp(variable)

sample_imp(variable)

Arguments

variable

A vector of size n with missing values.

variable

A vector of size n with missing values.

Value

A vector of size n without missing values.

A vector of size n without missing values.

Examples

1
2
sample_imp(c(1, NA, 3, NA, 5))
sample_imp(c(1, NA, 3, NA, 5))

matthiasspeidel/hmi documentation built on Aug. 18, 2020, 4:37 p.m.