nlme (version 3.1-1)

fitted.gls: Extract gls Fitted Values

Description

The fitted values for the linear model represented by object are extracted.

Usage

fitted(object)

Arguments

object
an object inheriting from class gls, representing a generalized least squares fitted linear model.

Value

  • a vector with the fitted values for the linear model represented by object.

See Also

gls, residuals.gls

Examples

Run this code
data(Ovary)
fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
           correlation = corAR1(form = ~ 1 | Mare))
fitted(fm1)

Run the code above in your browser using DataCamp Workspace