CQregression: Relationship between concentration and flow

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/CQregression.R

Description

Calculate the R^2 of the relationship between concentration and flow. Statistically significant correlation between concentration and flow is mandatory to perform analysis using regression methods (Quilbe' et al., 2006; Aulenbach et al., 2016).

Usage

1
CQregression(db, ncomp)

Arguments

db

An input data frame with at least three column. A column with DateTime in standard format (yyyy-mm-dd HH:MM:SS) labeled "datetime", a column with continuous flow records in cubic meter per second labeled "flow", and columns with scattered concentration data in milligram per litre. Alternatively, it can be used the output data frame of the function db.union.

ncomp

Number of compounds in the input data frame for which the load must be estimated.

Value

A matrix with R^2 for each compound.

Author(s)

Veronica Nava

References

Quilbe', R., Rousseau, A. N., Duchemin, M., Poulin, A., Gangbazo, G., & Villeneuve, J. P. (2006). Selecting a calculation method to estimate sediment and nutrient loads in streams: Application to the Beaurivage River (Quebec, Canada). Journal of Hydrology, 326(1-4), 295-310. https://doi.org/10.1016/j.jhydrol.2005.11.008 Aulenbach, B. T., Burns, D. A., Shanley, J. B., Yanai, R. D., Bae, K., Wild, A. D.,...,Yi, D. (2016). Approaches to stream solute load estimation for solutes with varying dynamics from five diverse small watersheds. Ecosphere, 7(6), 1-22. https://doi.org/10.1002/ecs2.1298

See Also

db.union rating ferguson

Examples

1
2
3
data("flow.data1","conc.data1")
union<-db.union(flow.data1, conc.data1)
reg.relationship<-CQregression(union, 2)

RiverLoad documentation built on Jan. 4, 2022, 5:07 p.m.