lzy_impute: Mean impute and optionally add missingness indicator

Description Usage Arguments Value

View source: R/missing.R

Description

For fast prototyping only!

Usage

1
lzy_impute(df, ..., indicate = TRUE)

Arguments

df

data frame

...

variable selections as per tidyselect

indicate

logical, whether or not to add missingness indicate. this indicator is a bad idea because missingness will likely be correlated with your outcome and you'll think your model is great when you've just given it the answer to start with. see Harrell Regression Modelling Strategies for details.

Value

data frame with mean imputed data and possibly missingness indicators


alexpghayes/hayeslib documentation built on Nov. 6, 2018, 10:49 p.m.