impind: Imputation Indicator

Description Usage Arguments Value Author(s)

View source: R/impind.R

Description

The imputation indicator function tests a dataframe vs a list of imputation indicators. The flags about the imputation are assumed already present on the dataframe. They may have different values while the output flag is binary.

Usage

1
impind(data, imputedvars, imputationflags, gij, imp.ind = c(1, 2, 3))

Arguments

data

(mandatory): A dataframe containing the data to be processed.

imputedvars

(mandatory): A vector with the column numbers of the variables that are imputed. For variable groups use the function rind.

imputationflags

(mandatory): A vector with the column numbers of the imputation flags corresponding to the imputed variables. To calculate the vector use the function flaggroup.

gij

(optional): A matrix "gij" containing imputation indicators for each variable and observation.

imp.ind

(optional): A vector with the values considered as imputation indicators. Defaults: 1, 2, 3

Value

A matrix "gij" containing imputation indicators for each variable and observation.

Author(s)

Beat Hulliger, Juan Berdugo


sdap documentation built on May 2, 2019, 6:52 p.m.

Related to impind in sdap...