rich_binom: rich_binom dataset

Description Usage Format Examples

Description

A sample dataset to test functions. This dataset has binomial responses.

Usage

1

Format

A data.table with 4 rows and 4 variables:

gender

gender, either Male or Female

criminal_record

indicating whether a person has a criminal record (yes) or not (no)

rich

the number of rich people that satisfies (gender, criminal_record) combination

not_rich

the number of non-rich people that satisfies the same combination as in rich

Examples

1
2
data(rich_binom)
binarize_binom(rich_binom, c('rich', 'not_rich'), 'is_rich')

joon3216/funpark documentation built on June 18, 2019, 7:32 a.m.