| fitted.egf {epigrowthfit} | R Documentation | 
Fitted Values
Description
Retrieves fitted values of top level nonlinear model parameters. The fitted value of a given parameter for a given fitting window is obtained by adding (i) the population fitted value computed as a linear combination of fixed effect coefficients and (ii) all applicable random effects, with random effects set equal to their conditional modes.
Usage
## S3 method for class 'egf'
fitted(object,
       top = egf_top(object), subset = NULL, select = NULL,
       class = FALSE, se = FALSE, ...)
## S3 method for class 'fitted.egf'
confint(object, parm = seq_len(nrow(object)), level = 0.95,
        class = FALSE, ...)
Arguments
| object | an  | 
| top | a subset of  | 
| subset,select | index vectors for the rows and columns of
 | 
| class | a logical.  If  | 
| se | a logical.  If  | 
| ... | additional arguments passed from or to other methods. | 
| parm | a valid index vector for the rows of  | 
| level | a number in the interval  | 
Value
A numeric matrix containing fitted values.
Users can pass class = TRUE to obtain an augmented result.
Thus, alternatively:
A data frame inheriting from class fitted.egf, with variables:
| top | top level nonlinear model parameter, from
 | 
| ts | time series, from
 | 
| window | fitting window, from
 | 
| value | fitted value. | 
| se | approximate delta method standard error (only if requested). | 
| ... | further variables from
model.frame(object, "combined")
specified by argument  | 
See Also
The generic function fitted.
Examples
example("egf", package = "epigrowthfit")
zz <- fitted(m1, class = TRUE, se = TRUE)
str(zz)
confint(zz, class = TRUE)