bivariate_table: Calculate bivariate table from a vector and a response...

Description Usage Arguments Examples

View source: R/bivariate_table.R

Description

Calculate bivariate table from a vector and a response variable

Usage

1
bivariate_table(x, target, add.prop.test = TRUE, conf.level = 0.95)

Arguments

x

A variable.

target

A binary variable same length as x.

add.prop.test

Boolean to add or not the prop.test by categories.

conf.level

Confidence level of the returned confidence interval.

Examples

1
2
3
4
5
6
7
8
9
data(german_credit)

bivariate_table(german_credit$purpose, german_credit$good_bad)


x <- cut(german_credit$duration_in_month, c(0, 6, 12, 24, 36, Inf))
target <- german_credit$good_bad

bivariate_table(x, target)

jbkunst/irks documentation built on May 22, 2021, 2:09 p.m.