Extract design matrix from data.frame and formula

design(
  formula,
  data,
  intercept = FALSE,
  rm_envir = FALSE,
  ...,
  specials = c("weights", "offset")
)

Arguments

formula

formula

data

data.frame

intercept

If FALSE (default) an intercept is not included

rm_envir

Remove environment

...

additional arguments (e.g, specials such weights, offsets, subset)

specials

character vector specifying functions in the formula that should be marked as special in the terms object

Value

An object of class 'design'

Author

Klaus Kähler Holst