durbinWatsonTest_tidiers {broom} | R Documentation |
For models that have only a single component, the tidy()
and
glance()
methods are identical. Please see the documentation for both
of those methods.
## S3 method for class 'durbinWatsonTest' tidy(x, ...) ## S3 method for class 'durbinWatsonTest' glance(x, ...)
x |
An object of class |
... |
Additional arguments. Not used. Needed to match generic
signature only. Cautionary note: Misspelled arguments will be
absorbed in |
A one-row tibble::tibble with columns:
statistic |
Test statistic for Durbin-Watson test. |
p.value |
P-value of test statistic. |
autocorrelation |
Residual autocorrelations. |
method |
Always |
alternative |
Alternative hypothesis (character). |
tidy()
, glance()
, car::durbinWatsonTest()
dw <- car::durbinWatsonTest(lm(mpg ~ wt, data = mtcars)) tidy(dw) glance(dw) # same output for all durbinWatsonTests