Learn R Programming

TDMR (version 2.2)

tdmPreLevel2Target: Relate levels of a column with a target (column).

Description

Print for each level of factor variable f which ratio 0 / 1 of the binary target variable it contains and how many cases are in each level

Usage

tdmPreLevel2Target(dset, target, f, opts)

Arguments

dset

data frame

target

name of target column

f

number of column with factor variable

opts

list, here we need

  • opts$thresh_pR

  • opts$verbose