Extracting the Extended Model Frame from a Formula or Fit
Source:R/utilities.R
extended.model.frame.Rd
This function attempts to apply model.frame
and extend the
result with columns of interactions.
Arguments
- formula
a model formula or terms object or an R object.
- data
a data.frame, list or environment (see
model.frame
).- ...
further arguments to pass to
model.frame
.- sep
separator in contraction of names for interactions (default = ".").
Value
A data.frame
that includes everything a model.frame
does plus interaction terms.