Create a respModule
object, which could be from a
derived class such as glmRespMod
or
nlsRespMod
.
mkRespMod(fr, family = NULL, nlenv = NULL, nlmod = NULL)
an object of a class inheriting from respModule
.
a model frame, usually created by a call to model.frame
.
an optional glm family
object
(glmRespMod
objects only).
an environment for evaluation of the nonlinear model, nlmod
.
(nlsRespMod
objects only).
the nonlinear model function, as a function call
(nlsRespMod
objects only).
The internal representation of a statistical model based on
a linear predictor expression is derived from a formula
expression and a data
argument, possibly supplemented with a
family
object and/or a nonlinear model expression. The
steps to obtain this representation usually involve calls to
model.frame
and to model.matrix
or
model.Matrix
, which encapsulate important parts of this
process. This function encapsulates other operations related to
weights and offsets and to the model family to create a
respModule
object.
The respModule
class description.
## see help("glpModel-class")
Run the code above in your browser using DataLab