Extract design matrix from data.frame and formula
design(
formula,
data,
intercept = FALSE,
rm_envir = FALSE,
...,
specials = c("weights", "offset")
)
formula
data.frame
If FALSE (default) an intercept is not included
Remove environment
additional arguments (e.g, specials such weights, offsets, subset)
character vector specifying functions in the formula that should be marked as special in the terms object
An object of class 'design'