| design | R Documentation |
Extract design matrix from data.frame and formula
design(
formula,
data,
...,
intercept = FALSE,
response = TRUE,
rm_envir = FALSE,
specials = NULL,
specials.call = NULL,
levels = NULL,
design.matrix = TRUE
)
formula |
formula |
data |
data.frame |
... |
additional arguments (e.g, specials such weights, offsets, ...) |
intercept |
(logical) If FALSE an intercept is not included in the design matrix |
response |
(logical) if FALSE the response variable is dropped |
rm_envir |
Remove environment |
specials |
character vector specifying functions in the formula that should be marked as special in the terms object |
specials.call |
(call) specials optionally defined as a call-type |
levels |
a named list of character vectors giving the full set of levels to be assumed for each factor |
design.matrix |
(logical) if FALSE then only response and specials are
returned. Otherwise, the design.matrix |
An object of class 'design'
Klaus Kähler Holst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.