observed {hydromad}R Documentation

Observed data values

Description

Like fitted, but return the original "observed" data rather than the modelled data.

Usage

observed(object, ...)

## Default S3 method:
observed(object, ...)

Arguments

object

a model object for which to return the observed values.

...

other arguments.

Details

The default method should work for any object with methods for residuals and fitted.

Value

the result of fitted(object) + residuals(object).

Author(s)

Felix Andrews felix@nfrac.org

See Also

residuals

Examples

x <- 1:10
mymodel <- list(fitted.values = x + rnorm(10))
mymodel$residuals <- x - fitted(mymodel)
observed(mymodel)
[Package hydromad version 0.9-18 Index]