imp_semicont_single: The function for hierarchical imputation of semicontinous...

Description Usage Arguments Value

View source: R/hmi_imp_semicont_single_2018-04-17.R View source: R/hmi_imp_semicont_single_2018-02-27.R View source: R/hmi_imp_semicont_single_2017-04-11.R View source: R/hmi_imp_semicont_single_2016-12-10.R View source: R/hmi_imp_semicont_single.R

Description

The function is called by the wrapper. We consider data to be "semicontinuous" when more than 5% of the (non categorical) observations.
For example in surveys a certain portion of people, when asked for their income, report "0", which clearly violates the assumption of income to be (log-) normally distributed.

Usage

1
imp_semicont_single(y_imp_multi, X_imp_multi, heap = 0, M = 10)

Arguments

y_imp_multi

A Vector with the variable to impute.

X_imp_multi

A data.frame with the fixed effects variables.

heap

A scalar saying to which value the data might be heaped.

M

An integer defining the number of imputations that should be made.

Value

A n x M matrix. Each column is one of M imputed y-variables.


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