getBurt {cabootcrs}  R Documentation 
Converting a data matrix into a Burt matrix
Description
getBurt
recodes a data matrix from one format (n objects by p variables,
counts for distinct combinations of p variables, contingency table) into a Burt matrix,
or extracts a subset of a Burt matrix for selected variables
Usage
getBurt(
Xinput,
input = "nbyp",
Jk = NULL,
maxcat = NULL,
varandcat = TRUE,
vars = NULL
)
Arguments
Xinput 
A data matrix, in the form of a data frame or similar 
input 
The format of the input matrix:

Jk 
See 
maxcat 
See 
varandcat 
See 
vars 
A list of the variable numbers to be used in the Burt matrix, if only a subset is wanted. 
Value
A Burt matrix, symmetrical and blockdiagonal with each block being a contingency table for a pair of variables
See Also
Other conversion functions:
convert()
,
getCT()
,
getdoubled()
,
getindicator()
Examples
nishburt < getBurt(NishData)
nishburtvars1to3 < getBurt(NishData,vars=1:3)
nishburtvars2and4 < getBurt(nishburt,input="Burt",Jk=rep(3,4),vars=c(2,4))