bt: Bivariate Table

Description Usage Arguments Value References Examples

Description

This function calculate a bivariate table.

Usage

1
bt(variable, target)

Arguments

variable

A variable

target

A numeric binary vector 0,1

Value

A dplyr::data_frame object with the counts, percents and odds

References

http://documentation.statsoft.com/portals/0/formula

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(credit)

variable <- credit$marital_status
target <- 1 - credit$bad

bt(variable, target)

variable <- cut(credit$payment_day, breaks = c(-Inf, 10, 20, Inf))

bt(variable, target)
 

jbkunst/riskr documentation built on May 18, 2019, 7 p.m.