binarize_pois: binarize_pois

Description Usage Arguments Value Author(s) See Also Examples

Description

Transform a data with a count response into a data with binary response.

Usage

1
binarize_pois(dat, response)

Arguments

dat

A data whose features are categorical, and has a column of natural numbers that correspond to the count response

response

A character; the name of column that stores the count response

Value

A data.table that has all of categorical features in dat, where each given combination of features (rows) are populated by integers based on response. The function will not keep those combinations with a zero count.

Author(s)

Junkyu Park

See Also

binarize_binom, change_form, Binarizing data using data.table

Examples

1
2
# data(rich_pois)
binarize_pois(rich_pois, 'count')

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