model.extract(frame, component) model.response(data, type="any") model.offset(x) model.weights(x)
model.frame()
"response"
,
"weights"
, and three flavors
of predictor matrix,
"tree.x"
,
"loess.x"
, and
"lm.x"
, for
the use of the corresponding fitting functions. The last is just
a synonym for
model.matrix()
.
Other names are wrapped in parentheses and selected as the corresponding
variable of the model frame,
following the convention of
model.frame()
for
special=
arguments.
"any", "numeric", "double"
.
If
"numeric"
or
"double"
, the results are
coerced with a call to
as.numeric
.
This is normally a support routine for fitting functions, such as
lm()
.
The
model.response
,
model.weights
and
model.offset
functions are wrapper functions to
model.extract
to get the appropriate component.
The
model.weights
and
model.offset
functions do not retain the row names of the model frame like the
model.extract
call does.