getdoubled {cabootcrs} | R Documentation |
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
getdoubled(Xinput, input = "nbyp", Jk = NULL, maxcat = NULL)
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 |
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
Other conversion functions:
convert()
,
getBurt()
,
getCT()
,
getindicator()
nishdoubled <- getdoubled(NishData)