test.DW: Durbin-Watson statistic

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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

Usage

1
test.DW(x, y)

Arguments

x

actual climate variable

y

reconstructed climate variable

Details

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

Value

The value of Durbin-Watson statistic

Author(s)

Zongshan Li zsli_st@rcees.ac.cn

References

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

See Also

lm

Examples

1
2

Example output

Loading required package: lmtest
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric


	Durbin-Watson test

data:  x ~ y
DW = 0.82109, p-value = 3.772e-07
alternative hypothesis: true autocorrelation is greater than 0

dcv documentation built on May 1, 2019, 9:25 p.m.