removeBadVars: removeBadVars

Description Usage Arguments Value Examples

Description

removeBadVars checks the variables in a dataframe, and removes those that do not meet the given parameters. To be used in conjunction with the multLogistic() function.

Usage

1
removeBadVars(data, catlist, predlist, nLevelsCutoff = 5, minCount = 1)

Arguments

data

input data.frame

catlist

vector of categorical variable names to use in multLogistic()

predlist

vector of all variable names to use in multLogistic()

nLevelsCutoff

Maximum number of levels a categorical variable can have and still be included in the analysis.

minCount

Minimum total number of non-NA entries a variable can have and still be included in the analyses.

Value

a list of varibale name vectors to include in a later analysis.

Examples

1
#NULL

TaylorAndrew/atPrepAnalyze documentation built on May 9, 2019, 4:23 p.m.