Debian Codegraph @

man/tidy.summary.glht.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/multcomp.R
3 \name{tidy.summary.glht}
4 \alias{tidy.summary.glht}
5 \title{Tidy a(n) summary.glht object}
6 \usage{
7 \method{tidy}{summary.glht}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{summary.glht} object created by calling
11 \code{\link[multcomp:methods]{multcomp::summary.glht()}} on a \code{glht} object created with
12 \code{\link[multcomp:glht]{multcomp::glht()}}.}
13
14 \item{...}{Additional arguments. Not used. Needed to match generic
15 signature only. \strong{Cautionary note:} Misspelled arguments will be
16 absorbed in \code{...}, where they will be ignored. If the misspelled
17 argument has a default value, the default value will be used.
18 For example, if you pass \code{conf.lvel = 0.9}, all computation will
19 proceed using \code{conf.level = 0.95}. Two exceptions here are:
20 \itemize{
21 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
22 it will be ignored.
23 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
24 will be ignored.
25 }}
26 }
27 \description{
28 Tidy summarizes information about the components of a model.
29 A model component might be a single term in a regression, a single
30 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
31 model component varies across models but is usually self-evident.
32 If a model has several distinct types of components, you will need to
33 specify which components to return.
34 }
35 \examples{
36 \dontshow{if (rlang::is_installed(c("multcomp", "ggplot2"))) withAutoprint(\{ # examplesIf}
37
38 # load libraries for models and data
39 library(multcomp)
40 library(ggplot2)
41
42 amod <- aov(breaks ~ wool + tension, data = warpbreaks)
43 wht <- glht(amod, linfct = mcp(tension = "Tukey"))
44
45 tidy(wht)
46
47 ggplot(wht, aes(lhs, estimate)) +
48 geom_point()
49
50 CI <- confint(wht)
51
52 tidy(CI)
53
54 ggplot(CI, aes(lhs, estimate, ymin = lwr, ymax = upr)) +
55 geom_pointrange()
56
57 tidy(summary(wht))
58 ggplot(mapping = aes(lhs, estimate)) +
59 geom_linerange(aes(ymin = lwr, ymax = upr), data = CI) +
60 geom_point(aes(size = p), data = summary(wht)) +
61 scale_size(trans = "reverse")
62
63 cld <- cld(wht)
64 tidy(cld)
65 \dontshow{\}) # examplesIf}
66 }
67 \seealso{
68 \code{\link[=tidy]{tidy()}}, \code{\link[multcomp:methods]{multcomp::summary.glht()}}, \code{\link[multcomp:glht]{multcomp::glht()}}
69
70 Other multcomp tidiers:
71 \code{\link{tidy.cld}()},
72 \code{\link{tidy.confint.glht}()},
73 \code{\link{tidy.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{estimate}{The estimated value of the regression term.}
80 \item{null.value}{Value to which the estimate is compared.}
81 \item{p.value}{The two-sided p-value associated with the observed statistic.}
82 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
83 \item{std.error}{The standard error of the regression term.}
84
85 }