catBinner {AssocBin} | R Documentation |
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)
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? |
Details
As both variables are already categorical, 'catBinner' performs no splits and does not merge any categories by default.
Value
A list of lists each with elements 'x', 'y', 'bnds', 'expn', 'n', and 'stopped'.
Author(s)
Chris Salahub
[Package AssocBin version 1.0-0 Index]