rmse.loadReg: Root-Mean-Squared Error

Description Usage Arguments Value See Also Examples

View source: R/rmse.loadReg.R

Description

Compute the root-mean-squared error (RMSE) of the difference between observed values and the fitted values for the load or concentration model. The RMSEs will be the same unless the log of flow is not an explanatory variable.

Usage

1
2
## S3 method for class 'loadReg'
rmse(x, model = c("load", "concentration"), ...)

Arguments

x

the output from loadReg.

model

the type of model, must be either "load" or "concentration."

...

not used, required for other methods.

Value

The estimated root-mean-squared error, also know as the residual standard error.

See Also

loadReg,

Examples

1
2
3
4
5
6
# 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.")
rmse(app1.lr)

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