getdoubled {cabootcrs} | R Documentation |
Converting a data matrix into a doubled matrix
Description
getdoubled
recodes a data matrix from one format (n objects by p variables,
counts for distinct combinations of p variables, contingency table) into a doubled matrix
Usage
getdoubled(Xinput, input = "nbyp", Jk = NULL, maxcat = NULL)
Arguments
Xinput |
A data matrix, in the form of a data frame or similar, all variables must be ordered categorical with numerical categories |
input |
See |
Jk |
See |
maxcat |
See |
Value
A doubled matrix, where each variable is represented by 2 columns, and a data point taking the i-th category for a variable with J_k categories is given the values J_k-i in the first (low) column and i-1 in the second (high) column
See Also
Other conversion functions:
convert()
,
getBurt()
,
getCT()
,
getindicator()
Examples
nishdoubled <- getdoubled(NishData)
[Package cabootcrs version 2.1.0 Index]