level.stat: Statistics for binary outputs in different levels and...

Description Usage Arguments Value Examples

View source: R/level_stat.R

Description

level.stat provides the useful statistics for different levels (groups) in the given independent variables.

Usage

1
level.stat(data, x = NULL, y, flag.0 = 0, flag.1 = 1)

Arguments

data

The data frame used for the statistics

x

The independent variable. If it is NULL, then all variables except y are used.

y

The binary outputs

flag.0

The value representing 0 in y

flag.1

The value representing 1 in y

Value

a data frame inclduing frequency, rates, Weight of Evidence (WOE), and Information Value (IV) for each level. The return data is already ranked by the IV values from high to low.

Examples

1
2
data <- rpart::stagec
level.stat(data, x = c('eet', 'ploidy'), y = 'pgstat')

JianhuaHuang/streamlineR documentation built on Aug. 19, 2018, 6:59 a.m.