initImputation: Data cleaning for logical and regression imputation

Description Usage Arguments Value Examples

Description

Creates a dataframe with imputed values from

Usage

1
initImputation(data = "", dropna = 1, ageimpute = 1, meanimpute = 0)

Arguments

data

location of data file

dropna

whether to convert missing values to NA

ageimpute

perform logical imputation of mothers and fathers age across waves

meanimpute

convert all input columns to numeric and perform a mean imputation to help get better results from regression imputation; default off because regression imputation will perform this automatically.

Value

Dataframe with same dimensions as input, entirely numeric

Examples

1
## Not run: initImputation('background.csv', dropna=1, ageimpute=1, meanimpute=1)

annafil/FFCRegressionImputation documentation built on May 12, 2019, 1:59 p.m.