Description Usage Arguments Value References See Also Examples
Select the "best" predefined rating-curve (regression) model for river load estimation.
1 2 3 | selBestModel(constituent, data, subset, na.action, flow, dates,
flow.units = "cfs", conc.units = "", load.units = "kg",
time.step = "day", station = "", criterion = c("AIC", "SPCC", "AICc"))
|
constituent |
a character string giving the name of the response variable for which loads are to be computed. |
data |
the data to search for the variables in |
subset |
an expression to select a subset of the data. |
na.action |
what to do with missing values. |
flow |
character string indicating the name of the flow column. |
dates |
character string indicating the name of the date column. |
flow.units |
character string describing the flow unit. |
conc.units |
character string describing the concentration unit. |
load.units |
character string describing the load unit. |
time.step |
character string describing the time step of the calibration data. |
station |
character string description of the station. |
criterion |
the criterion to use for subset selection, must be one of "AIC," "SPCC," or "AICc." |
An object of class "loadReg."
will need some.
1 2 3 4 5 6 7 | # Use the data from application 1 in the vignettes
data(app1.calib)
app1.lr <- selBestModel("Phosphorus", data = app1.calib,
flow = "FLOW", dates = "DATES", conc.units="mg/L",
station="Illinois River at Marseilles, Ill.")
# Extract the fitted values
print(app1.lr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.