Fit polynomial rating curve
Usage
rc_poly(discharge, stage, ..., data = NULL, degree = 2, variance = var_none())Arguments
- discharge
<
data-masking> Discharge: a vector, or an expression evaluated indata, such as a column name.- stage
<
data-masking> Stage: a vector, or an expression evaluated indata, such as a column name.- ...
Must be empty. Present so that every argument after it has to be named in full.
- data
Optional data frame in which
dischargeandstageare evaluated.- degree
Polynomial degree; positive whole number. Default 2.
- variance
How the variance of the gaugings about the curve is modelled:
var_none()(or"none", the default),var_prop()(or"prop"), orvar_spec()with the variances. See variance.
Value
An rc_poly object; see rating_curve for its contents. The
coefficients are named b0, b1, ... by power of stage.