Description Usage Arguments Value
Creates a quick linear model to impute null values based on values in the data. Will only replace nulls, the predicted model values are discarded.
1 | impute.var(df, var, formula, plots = F)
|
df |
The data frame. |
var |
The name of the variable to impute null values for, as a string |
formula |
The formula for the imputation model |
plots |
A variable to turn diagnostic plots on or off. |
Returns the original data frame with a new variable labeled Designed to put into magrittry chains easily.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.