Learn R Programming

RiverLoad (version 1.0.3)

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

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

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.

See Also

db.union rating ferguson

Examples

Run this code
# NOT RUN {
data("flow.data3", "conc.data3")
union<-db.union(flow.data3, conc.data3)
reg.parametrs<-reg.inspection(union, 1)
# }

Run the code above in your browser using DataLab