Largely a wrapper for
accepts a factor,
f, and returns a dummy
nlevels(f)-1 columns (the first
column is dropped by default). Useful whenever one wishes to avoid
the behaviour of
model.matrix of always returning
nlevels(f)-column matrix, either by the
addition of an intercept column, or by keeping one
column for all levels.
An object coercible to
An optional character vector giving the subset of
model.matrix with dummy variables as columns.
data(Orthodont,package="nlme") lmer(distance ~ age + (age|Subject) + (0+dummy(Sex, "Female")|Subject), data = Orthodont)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.