getindicator | R Documentation |
getindicator
recodes a data matrix from one format (n objects by p variables,
counts for distinct combinations of p variables, contingency table) into an indicator matrix
getindicator( Xinput, input = "nbyp", Jk = NULL, maxcat = NULL, varandcat = TRUE )
Xinput |
A data matrix, in the form of a data frame or similar |
input |
See |
Jk |
See |
maxcat |
See |
varandcat |
See |
An indicator matrix, where a variable with J_k categories is represented by J_k columns and a data point taking the i-th category has 1 in the i-th of these columns and a zero in the others
Other conversion functions:
convert()
,
getBurt()
,
getCT()
,
getdoubled()
nishindicator <- getindicator(NishData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.