Extracts from a model object any of several data frames used to specify the model, including the mixed effects model frames.
# S3 method for egf
model.frame(formula,
which = c("ts", "windows", "parameters", "extra", "combined"),
top = egf_top(formula), full = FALSE, ...)
A data frame.
an egf
object.
a character string controlling what is returned:
"ts"
disease incidence time series.
"windows"
fitting window endpoints.
"parameters"
the mixed effects model frame corresponding to top
.
"extra"
variables preserved in formula
due to setting of
egf
argument select_windows
.
"combined"
the result of concatenating (in the sense of cbind
)
all mixed effects model frames and the data frame corresponding
to "extra"
, then deleting any duplicated variables.
a character string specifying a top level nonlinear model parameter,
for which = "parameters"
.
a logical, for which = "ts"
. If TRUE
, then complete
time series are returned. Otherwise, only observations belonging
to fitting windows are returned.
unused optional arguments.
The generic function model.frame
.