AddMissingIndicatorVariables: Add missing indicator variables function

Description Usage Arguments

View source: R/AddMissingInidcatorVariables.R

Description

Creates missing indicator variables for each predictor variable (feature) with missing values

Usage

1
2
AddMissingIndicatorVariables(study.sample, outcome.name = "composite",
  features = NULL, excluded.columns = c("tc"))

Arguments

study.sample

Data Frame. The study sample. No default

outcome.name

String. The name of outcome variable. Defaults to "composite"

features

Character vector. The names of the feature variables. Defaults to NULL, in which case all columns except outcome.name and those potentially listed in excluded.columns are treated as features.

excluded.columns

Character vector. The names of columns that should not be treated as features. Defaults to NULL and is then ignored. Is also ignored if features is specified.


citronmeliss/predictionpackr documentation built on Feb. 10, 2020, 12:19 a.m.