Learn R Programming

AssocBin (version 1.1-0)

catBinner: Binning of categorical variable pairs

Description

`catBinner` converts the cross-tabulation of two categorical variables into bins which work with all of the functionality on bins built into `AssocBin`.

Usage

catBinner(x, y, dropPoints = FALSE)

Value

A list of lists each with elements `x`, `y`, `bnds`, `expn`, `n`, and `stopped`.

Arguments

x

factor vector for the first categorical variable

y

factor vector for the second categorical variable

dropPoints

logical; should points be dropped from final bins?

Author

Chris Salahub

Details

As both variables are already categorical, `catBinner` performs no splits and does not merge any categories by default.