Debian Codegraph @

man/tidy.cld.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/multcomp.R
3 \name{tidy.cld}
4 \alias{tidy.cld}
5 \title{Tidy a(n) cld object}
6 \usage{
7 \method{tidy}{cld}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{cld} object created by calling \code{\link[multcomp:cld]{multcomp::cld()}} on a
11 \code{glht}, \code{confint.glht()} or \code{summary.glht()} object.}
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 \examples{
35 \dontshow{if (rlang::is_installed(c("multcomp", "ggplot2"))) withAutoprint(\{ # examplesIf}
36
37 # load libraries for models and data
38 library(multcomp)
39 library(ggplot2)
40
41 amod <- aov(breaks ~ wool + tension, data = warpbreaks)
42 wht <- glht(amod, linfct = mcp(tension = "Tukey"))
43
44 tidy(wht)
45
46 ggplot(wht, aes(lhs, estimate)) +
47 geom_point()
48
49 CI <- confint(wht)
50
51 tidy(CI)
52
53 ggplot(CI, aes(lhs, estimate, ymin = lwr, ymax = upr)) +
54 geom_pointrange()
55
56 tidy(summary(wht))
57 ggplot(mapping = aes(lhs, estimate)) +
58 geom_linerange(aes(ymin = lwr, ymax = upr), data = CI) +
59 geom_point(aes(size = p), data = summary(wht)) +
60 scale_size(trans = "reverse")
61
62 cld <- cld(wht)
63 tidy(cld)
64 \dontshow{\}) # examplesIf}
65 }
66 \seealso{
67 \code{\link[=tidy]{tidy()}}, \code{\link[multcomp:cld]{multcomp::cld()}}, \code{\link[multcomp:methods]{multcomp::summary.glht()}},
68 \code{\link[multcomp:methods]{multcomp::confint.glht()}}, \code{\link[multcomp:glht]{multcomp::glht()}}
69
70 Other multcomp tidiers:
71 \code{\link{tidy.confint.glht}()},
72 \code{\link{tidy.glht}()},
73 \code{\link{tidy.summary.glht}()}
74 }
75 \concept{multcomp tidiers}
76 \value{
77 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
78 \item{contrast}{Levels being compared.}
79 \item{letters}{Compact letter display denoting all pair-wise comparisons.}
80
81 }