Multiple Response variables are essentially Categorical Arrays in which one or more categories are set as "selected". These methods allow you set that state.
# S4 method for Categories
is.dichotomized(x)# S4 method for Categories,numeric
dichotomize(x, i)
# S4 method for Categories,logical
dichotomize(x, i)
# S4 method for Categories,character
dichotomize(x, i)
# S4 method for Categories
undichotomize(x)
# S4 method for CategoricalVariable,ANY
dichotomize(x, i)
# S4 method for CategoricalArrayVariable,ANY
dichotomize(x, i)
# S4 method for CategoricalVariable
undichotomize(x)
# S4 method for CategoricalArrayVariable
undichotomize(x)
Categories or a Variable subclass that has Categories
For the dichotomize
methods, the numeric or logical indices
of the categories to mark as "selected", or if character, the Category
"names". Note that unlike some other categorical variable methods,
numeric indices are positional, not with reference to category ids.
Categories or the Variable, (un)dichotomized accordingly
dichotomize
lets you specify which categories are "selected", while
undichotomize
strips that selection information. Dichotomize converts
a Categorical Array to a Multiple Response, and undichotomize does the reverse.