Description Usage Arguments Details Value References See Also Examples
Build a segmented rating-curve (regression) model for river load estimation.
1 2 3 |
formula |
a formula describing the regression model. See Details. |
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. |
trace |
if logical, then if |
The left-hand side of the formula can be any numeric variable, just
as with lm
or a variable of class "lcens," "mcens," "qw," or "Surv."
The response variable must be a column in data
; it cannot be constructed using
as.lcens
, as.mcens
, or Surv
. The initial segmented model is
based on uncensored data—simple substitution of 1/2 the reporting limit is used
for left-censored values and multiply censored values cause the analysis to fail.
The first term of right-hand side must be defined by the seg
function
with the number of segments. The first term may be followed by any number of
additional terms. The final model will place the segmeted term in the last postition
and seg
will be replaced by the proper call to segment
.
An object of class "loadReg."
will need some.
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.")
print(app1.lr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.