Learn R Programming

dcv (version 0.1.1)

test.DW: Durbin-Watson statistic

Description

Perform the Durbin-Watson statistic of actual and reconstructed climate variables over the common duration

Usage

test.DW(x, y)

Arguments

x
actual climate variable
y
reconstructed climate variable

Value

The value of Durbin-Watson statistic

Details

perform the Durbin-Watson statistic of actual and reconstructed climate variables over the common duration

References

J. Durbin, G.S. Watson (1950), Testing for Serial Correlation in Least Squares Regression I. Biometrika 37, 409-428.

See Also

lm

Examples

Run this code
data(val)
test.DW(val[,1],val[,2])

Run the code above in your browser using DataLab