observed {hydromad} | R Documentation |
Like fitted
, but return the original "observed" data
rather than the modelled data.
observed(object, ...) ## Default S3 method: observed(object, ...)
object |
a model object for which to return the observed values. |
... |
other arguments. |
The default method should work for any object with methods for residuals
and fitted
.
the result of fitted(object) + residuals(object)
.
Felix Andrews felix@nfrac.org
residuals
x <- 1:10 mymodel <- list(fitted.values = x + rnorm(10)) mymodel$residuals <- x - fitted(mymodel) observed(mymodel)