| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/car.R |
| 3 |
\name{durbinWatsonTest_tidiers} |
| 4 |
\alias{durbinWatsonTest_tidiers} |
| 5 |
\alias{tidy.durbinWatsonTest} |
| 6 |
\alias{glance.durbinWatsonTest} |
| 7 |
\title{Tidy/glance a(n) durbinWatsonTest object} |
| 8 |
\usage{ |
| 9 |
\method{tidy}{durbinWatsonTest}(x, ...) |
| 10 |
|
| 11 |
\method{glance}{durbinWatsonTest}(x, ...) |
| 12 |
} |
| 13 |
\arguments{ |
| 14 |
\item{x}{An object of class \code{durbinWatsonTest} created by a call to |
| 15 |
\code{\link[car:durbinWatsonTest]{car::durbinWatsonTest()}}.} |
| 16 |
|
| 17 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 18 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 19 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 20 |
argument has a default value, the default value will be used. |
| 21 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 22 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 23 |
\itemize{ |
| 24 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 25 |
it will be ignored. |
| 26 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 27 |
will be ignored. |
| 28 |
}} |
| 29 |
} |
| 30 |
\description{ |
| 31 |
For models that have only a single component, the \code{\link[=tidy]{tidy()}} and |
| 32 |
\code{\link[=glance]{glance()}} methods are identical. Please see the documentation for both |
| 33 |
of those methods. |
| 34 |
} |
| 35 |
\examples{ |
| 36 |
\dontshow{if (rlang::is_installed("car")) withAutoprint(\{ # examplesIf} |
| 37 |
|
| 38 |
# load modeling library |
| 39 |
library(car) |
| 40 |
|
| 41 |
# fit model |
| 42 |
dw <- durbinWatsonTest(lm(mpg ~ wt, data = mtcars)) |
| 43 |
|
| 44 |
# summarize model fit with tidiers |
| 45 |
tidy(dw) |
| 46 |
|
| 47 |
# same output for all durbinWatsonTests |
| 48 |
glance(dw) |
| 49 |
\dontshow{\}) # examplesIf} |
| 50 |
} |
| 51 |
\seealso{ |
| 52 |
\code{\link[=tidy]{tidy()}}, \code{\link[=glance]{glance()}}, \code{\link[car:durbinWatsonTest]{car::durbinWatsonTest()}} |
| 53 |
|
| 54 |
Other car tidiers: |
| 55 |
\code{\link{leveneTest_tidiers}} |
| 56 |
} |
| 57 |
\concept{car tidiers} |
| 58 |
\value{ |
| 59 |
A \code{\link[tibble:tibble]{tibble::tibble()}} with columns: |
| 60 |
\item{alternative}{Alternative hypothesis (character).} |
| 61 |
\item{autocorrelation}{Autocorrelation.} |
| 62 |
\item{p.value}{The two-sided p-value associated with the observed statistic.} |
| 63 |
\item{statistic}{Test statistic for Durbin-Watson test.} |
| 64 |
\item{method}{Always `Durbin-Watson Test`.} |
| 65 |
|
| 66 |
} |