View source: R/regressiondiagnostics.R
DurbinWatson | R Documentation |
DurbinWatson
DurbinWatson
DurbinWatson(model, n.permutations = 1000, seed = 123)
model |
A 'Regression' model. |
n.permutations |
Number of permutations used in computing the p-value. |
seed |
The random nmber seed. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.