dummy: Dummy responses

Description Usage Arguments Author(s) Examples

View source: R/dummy.R

Description

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

Usage

1
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 Herv<e9> <[email protected]>

Examples

1
2
fac <- gl(3,5,labels=LETTERS[1:3])
dummy(fac)

RVAideMemoire documentation built on Nov. 6, 2018, 5:05 p.m.