rich: rich dataset

Description Usage Format Examples

Description

A sample dataset to test functions. This dataset has a binary response.

Usage

1

Format

A data.table with 10 rows and 3 variables:

gender

gender, either Male or Female

criminal_record

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

is_rich

integer column, 0 if not rich and 1 if rich

Examples

1
2
3
4
5
6
7
data(rich)
change_form(
    rich,
    from = 'binary', to = 'binomial',
    old_response = 'is_rich',
    new_response = c('rich', 'not_rich')
)

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