fitted.loadReg: Extract Model Fitted Values

Description Usage Arguments Value See Also Examples

View source: R/fitted.loadReg.R

Description

Extract the fitted values of a load regression.

Usage

1
2
3
## S3 method for class 'loadReg'
fitted(object, suppress.na.action = FALSE, which = "load",
  ...)

Arguments

object

an object of class "loadReg"—output from loadReg

suppress.na.action

logical, suppress the effects of the na.action in the call to loadReg and return only the fitted values corresponding to the fitted data.

which

a character string indicating the type of fitted values. Must be either "load" or "concentration."

...

further arguments passed to or from other methods.

Value

The fitted values from the regression. Note that these are not back- transformed but are in natrual log units.

See Also

loadReg

Examples

1
2
3
4
5
6
7
# From application 1 in the vignettes
data(app1.calib)
app1.lr <- loadReg(Phosphorus ~ model(1), data = app1.calib, 
 flow = "FLOW", dates = "DATES", conc.units="mg/L",
 station="Illinois River at Marseilles, Ill.")
# Extract the fitted values
fitted(app1.lr)

USGS-R/rloadest documentation built on Oct. 2, 2020, 5:21 a.m.