model.frame.egf {epigrowthfit}R Documentation

Extract Model Frames

Description

Extracts from a model object any of several data frames used to specify the model, including the mixed effects model frames.

Usage

## S3 method for class 'egf'
model.frame(formula,
            which = c("ts", "windows", "parameters", "extra", "combined"),
            top = egf_top(formula), full = FALSE, ...)

Arguments

formula

an egf object.

which

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.

top

a character string specifying a top level nonlinear model parameter, for which = "parameters".

full

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.

Value

A data frame.

See Also

The generic function model.frame.


[Package epigrowthfit version 0.15.3 Index]