removeImputation: Function to remove prior imputation.

Description Usage Arguments Details Value

Description

Function to remove prior imputation.

Usage

1
2
3
removeImputation(data, value, observationFlag, methodFlag,
  missingObservationFlag = "M", missingMethodFlag = "u",
  imputedFlag = "I")

Arguments

data

The data.table object containing the values.

value

The column name of data which contains the values for the variable to be modified.

observationFlag

The column name of the observation flag corresponding to value.

methodFlag

The column name of the method flag corresponding to value.

missingObservationFlag

The character value which is used to represent missing values in the observation flag. This value will be put in any column containing imputation data that is removed.

missingMethodFlag

The character value which is used to represent missing values in the method flag. This value will be put in any column containing imputation data that is removed.

imputedFlag

This character value specifies which observation flags correspond to imputed values in the data.

Details

Observations which have observationFlag == imputedFlag will be modified to missing. Thus, the value will be updated to NA, the observation flag will be updated to missingObservationFlag, and the method flag will be updated to missingMethodFlag.

Value

No value is returned. However, the object "data" which was passed to this function is modified.


mkao006/sws_util documentation built on May 23, 2019, 1:06 a.m.