getBurt | R Documentation |
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
getBurt( Xinput, input = "nbyp", Jk = NULL, maxcat = NULL, varandcat = TRUE, vars = NULL )
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. |
A Burt matrix, symmetrical and block-diagonal with each block being a contingency table for a pair of variables
Other conversion functions:
convert()
,
getCT()
,
getdoubled()
,
getindicator()
nishburt <- getBurt(NishData) nishburtvars1to3 <- getBurt(NishData,vars=1:3) nishburtvars2and4 <- getBurt(nishburt,input="Burt",Jk=rep(3,4),vars=c(2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.