DurbinWatson: 'DurbinWatson'

View source: R/regressiondiagnostics.R

DurbinWatsonR Documentation

DurbinWatson

Description

DurbinWatson

Usage

DurbinWatson(model, n.permutations = 1000, seed = 123)

Arguments

model

A 'Regression' model.

n.permutations

Number of permutations used in computing the p-value.

seed

The random nmber seed.

Details

Computes the Durbin-Watson statistic. A permutation test is used for computing the p-value. Tests to a lag of 1 (two-sided).

Durbin, J., Watson, G. S. (1950). 'Testing for Serial Correlation in Least Squares Regression, I'. Biometrika 37, (pp. 3 - 4.


Displayr/flipRegression documentation built on March 2, 2024, 3:51 a.m.