AddDummyVariablesForNAs | R Documentation |
data.frame
suitable for regression models.Appends a matrix to a data.frame
containing columns of dummy variables. It assumes
the input data is suitable for regression and contains a single column for an outcome variable.
Other columns would be for individual predictors used in the regression. The appended columns of dummy
variables indicate the missing status of each predictor. i.e. 1 if the predictor is missing in that case,
zero otherwise. A column is added for each predictor that has at least one case of missing data.
AddDummyVariablesForNAs(data, outcome.name, checks = TRUE)
data |
A |
outcome.name |
A |
checks |
A |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.