For fast prototyping only!
lzy_impute(df, ..., indicate = TRUE)
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. |
data frame with mean imputed data and possibly missingness indicators