dummy | R Documentation |
Creates a matrix of dummy responses from a factor. Needed in some multivariate analyses.
dummy(f, simplify = TRUE)
f |
vector (internally transformed into factor). |
simplify |
logical indicating if the last column of the response matrix should be removed (to avoid model overfitting). |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
fac <- gl(3,5,labels=LETTERS[1:3])
dummy(fac)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.