coef.loadReg: Extract Model Coefficients

Description Usage Arguments Value Note See Also Examples

View source: R/coef.loadReg.R

Description

Extract the model coefficients from a load regression.

Usage

1
2
## S3 method for class 'loadReg'
coef(object, summary = FALSE, which = "load", ...)

Arguments

object

the output from loadReg.

summary

include standard errors and other information?

which

string indicating which coefficients to return; "load" returns the load model and "concentration" returns the concentration model coefficients.

...

further arguments passed to or from other methods.

Value

Either a names vector of the coefficients, if summary is FALSE or a matrix of the coefficients, their standard errors, z-scores, and attained p-values, if summary is TRUE.

Note

The attained p-values are computed from the log-likelihood test for AMLE regression and from a Wald chi-square test for MLE regression.

See Also

loadReg,

Examples

1
2
3
4
5
6
7
# 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.")
# Extract the coefficients
coef(app1.lr)

USGS-R/rloadest documentation built on Oct. 2, 2020, 5:21 a.m.