Debian Codegraph @

man/tidy.pairwise.htest.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/stats-htest.R
3 \name{tidy.pairwise.htest}
4 \alias{tidy.pairwise.htest}
5 \title{Tidy a(n) pairwise.htest object}
6 \usage{
7 \method{tidy}{pairwise.htest}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{pairwise.htest} object such as those returned from
11 \code{\link[stats:pairwise.t.test]{stats::pairwise.t.test()}} or \code{\link[stats:pairwise.wilcox.test]{stats::pairwise.wilcox.test()}}.}
12
13 \item{...}{Additional arguments. Not used. Needed to match generic
14 signature only. \strong{Cautionary note:} Misspelled arguments will be
15 absorbed in \code{...}, where they will be ignored. If the misspelled
16 argument has a default value, the default value will be used.
17 For example, if you pass \code{conf.lvel = 0.9}, all computation will
18 proceed using \code{conf.level = 0.95}. Two exceptions here are:
19 \itemize{
20 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
21 it will be ignored.
22 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
23 will be ignored.
24 }}
25 }
26 \description{
27 Tidy summarizes information about the components of a model.
28 A model component might be a single term in a regression, a single
29 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
30 model component varies across models but is usually self-evident.
31 If a model has several distinct types of components, you will need to
32 specify which components to return.
33 }
34 \details{
35 Note that in one-sided tests, the alternative hypothesis of each
36 test can be stated as "group1 is greater/less than group2".
37
38 Note also that the columns of group1 and group2 will always be a factor,
39 even if the original input is (e.g.) numeric.
40 }
41 \examples{
42 \dontshow{if (rlang::is_installed("modeldata")) withAutoprint(\{ # examplesIf}
43
44 attach(airquality)
45 Month <- factor(Month, labels = month.abb[5:9])
46 ptt <- pairwise.t.test(Ozone, Month)
47 tidy(ptt)
48
49 library(modeldata)
50 data(hpc_data)
51 attach(hpc_data)
52 ptt2 <- pairwise.t.test(compounds, class)
53 tidy(ptt2)
54
55 tidy(pairwise.t.test(compounds, class, alternative = "greater"))
56 tidy(pairwise.t.test(compounds, class, alternative = "less"))
57
58 tidy(pairwise.wilcox.test(compounds, class))
59 \dontshow{\}) # examplesIf}
60 }
61 \seealso{
62 \code{\link[stats:pairwise.t.test]{stats::pairwise.t.test()}}, \code{\link[stats:pairwise.wilcox.test]{stats::pairwise.wilcox.test()}},
63 \code{\link[=tidy]{tidy()}}
64
65 Other htest tidiers:
66 \code{\link{augment.htest}()},
67 \code{\link{tidy.htest}()},
68 \code{\link{tidy.power.htest}()}
69 }
70 \concept{htest tidiers}
71 \value{
72 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
73 \item{group1}{First group being compared.}
74 \item{group2}{Second group being compared.}
75 \item{p.value}{The two-sided p-value associated with the observed statistic.}
76
77 }