Learn R Programming

groc (version 1.0.10)

model.frame.groc: Extract Information From a Fitted groc Model

Description

Functions to extract information from groc objects: the model frame, the model matrix.

Usage

# S3 method for groc
model.matrix(object, ...)
# S3 method for groc
model.frame(formula, ...)

Value

model.frame.groc returns a data frame with all variables neccessary to generate the model matrix.

model.matrix.groc returns the \(X\) matrix.

Arguments

object, formula

a groc object. The fitted model.

...

other arguments sent to underlying functions.

Author

Ron Wehrens and Bjørn-Helge Mevik

Details

model.frame.groc returns the model frame; i.e. a data frame with all variables necessary to generate the model matrix. See model.frame for details.

model.matrix.groc returns the (possibly coded) matrix used as \(X\) in the fitting. See model.matrix for details.

See Also