50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

polywog (version 0.4-1)

model.frame.polywog: Model frame of a polywog model

Description

Extracts the model frame from a fitted polywog model, as model.frame.lm does for a fitted lm model.

Usage

# S3 method for polywog
model.frame(formula, ...)

Value

A data frame containing the variables used to fit the model, with additional attributes (e.g., "terms") used to construct a model matrix.

Arguments

formula

a fitted model of class "polywog" (the argument is named formula for consistency with the generic function model.frame)

...

other arguments, currently ignored (but may later be adapted for use as in model.frame.lm)

Author

Brenton Kenkel and Curtis S. Signorino

See Also

model.matrix.polywog for constructing the design matrix.