reg.inspection: Parameters of regression analysis between flow and...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/reg.inspection.R

Description

Calculate regression analysis parameters. The output returns the slope and intercept coefficients and their related p-value, the R^2, the adjusted R^2, and the residual degrees-of-freedom

Usage

1
reg.inspection(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 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 matrix 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 the slope coefficient, the slope p-value, the intercept coefficient, the intercept p-value, the R^2, and the residual degrees-of-freedom for each compound.

Author(s)

Veronica Nava

See Also

db.union rating ferguson

Examples

1
2
3
data("flow.data3", "conc.data3")
union<-db.union(flow.data3, conc.data3)
reg.parametrs<-reg.inspection(union, 1)

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