center: Centered Linear Terms

Description Usage Arguments Value Note References See Also Examples

Description

Computes centered values. Used primarily in a linear regression formula.

Usage

1

Arguments

x

a numeric vector for which to compute the centered values. Missing values are permitted and result in corresponding missing values in the output.

center

an optional value to use for the center of x.

Value

The centered value of x.

Note

The centering value by default is computed by the method described in Cohn and others (1992).

References

Cohn, T.A., Caulder, D.L., Gilroy, E.J., Zynjuk, L.D., and Summers, R.M., 1992, The validity of a simple statistical model for estimating fluvial constituent loads—An empirical study involving nutrient loads entering Chesapeake Bay: Water Resources research, v. 28, no. 5, p. 937–942.

See Also

quadratic, scale

Examples

1
2
# trivial ceneterd values from 1 to 10
center(seq(10))

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