getdoubled: 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
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