Debian Codegraph @

man/tidy.Kendall.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/kendall.R
3 \name{tidy.Kendall}
4 \alias{tidy.Kendall}
5 \alias{Kendall_tidiers}
6 \alias{kendall_tidiers}
7 \title{Tidy a(n) Kendall object}
8 \usage{
9 \method{tidy}{Kendall}(x, ...)
10 }
11 \arguments{
12 \item{x}{A \code{Kendall} object returned from a call to \code{\link[Kendall:Kendall]{Kendall::Kendall()}},
13 \code{\link[Kendall:MannKendall]{Kendall::MannKendall()}}, or \code{\link[Kendall:SeasonalMannKendall]{Kendall::SeasonalMannKendall()}}.}
14
15 \item{...}{Additional arguments. Not used. Needed to match generic
16 signature only. \strong{Cautionary note:} Misspelled arguments will be
17 absorbed in \code{...}, where they will be ignored. If the misspelled
18 argument has a default value, the default value will be used.
19 For example, if you pass \code{conf.lvel = 0.9}, all computation will
20 proceed using \code{conf.level = 0.95}. Two exceptions here are:
21 \itemize{
22 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
23 it will be ignored.
24 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
25 will be ignored.
26 }}
27 }
28 \description{
29 Tidy summarizes information about the components of a model.
30 A model component might be a single term in a regression, a single
31 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
32 model component varies across models but is usually self-evident.
33 If a model has several distinct types of components, you will need to
34 specify which components to return.
35 }
36 \examples{
37 \dontshow{if (rlang::is_installed("Kendall")) withAutoprint(\{ # examplesIf}
38
39 # load libraries for models and data
40 library(Kendall)
41
42 A <- c(2.5, 2.5, 2.5, 2.5, 5, 6.5, 6.5, 10, 10, 10, 10, 10, 14, 14, 14, 16, 17)
43 B <- c(1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2)
44
45 # fit models and summarize results
46 f_res <- Kendall(A, B)
47 tidy(f_res)
48
49 s_res <- MannKendall(B)
50 tidy(s_res)
51
52 t_res <- SeasonalMannKendall(ts(A))
53 tidy(t_res)
54 \dontshow{\}) # examplesIf}
55 }
56 \seealso{
57 \code{\link[=tidy]{tidy()}}, \code{\link[Kendall:Kendall]{Kendall::Kendall()}}, \code{\link[Kendall:MannKendall]{Kendall::MannKendall()}},
58 \code{\link[Kendall:SeasonalMannKendall]{Kendall::SeasonalMannKendall()}}
59 }
60 \value{
61 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
62 \item{kendall_score}{Kendall score.}
63 \item{p.value}{The two-sided p-value associated with the observed statistic.}
64 \item{var_kendall_score}{Variance of the kendall_score.}
65 \item{statistic}{Kendall's tau statistic}
66 \item{denominator}{The denominator, which is tau=kendall_score/denominator.}
67
68 }