Extract design matrix from data.frame and formula
design(
formula,
data,
...,
intercept = FALSE,
response = FALSE,
rm_envir = FALSE,
specials = NULL,
specials.call = NULL,
xlev = NULL,
design.matrix = TRUE
)
formula
data.frame
additional arguments (e.g, specials such weights, offsets, ...)
(logical) If FALSE an intercept is not included in the design matrix
(logical) if FALSE the response variable is dropped
Remove environment
character vector specifying functions in the formula that should be marked as special in the terms object
(call) specials optionally defined as a call-type
a named list of character vectors giving the full set of levels to be assumed for each factor
(logical) if FALSE then only response and specials are
returned. Otherwise, the design.matrix x
is als part of the returned
object.
An object of class 'design'