dummy function

Dummy responses

Dummy responses

Creates a matrix of dummy responses from a factor. Needed in some multivariate analyses.

dummy(f, simplify = TRUE)

Arguments

  • f: vector (internally transformed into factor).
  • simplify: logical indicating if the last column of the response matrix should be removed (to avoid model overfitting).

Author(s)

Maxime HERVE maxime.herve@univ-rennes1.fr

Examples

fac <- gl(3,5,labels=LETTERS[1:3]) dummy(fac)
  • Maintainer: Maxime HERVE
  • License: GPL-2
  • Last published: 2023-11-06

Useful links