Debian Codegraph @

man/tidy.summary.lm.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/stats-summary-lm.R
3 \name{tidy.summary.lm}
4 \alias{tidy.summary.lm}
5 \title{Tidy a(n) summary.lm object}
6 \usage{
7 \method{tidy}{summary.lm}(x, conf.int = FALSE, conf.level = 0.95, ...)
8 }
9 \arguments{
10 \item{x}{A \code{summary.lm} object created by \code{\link[stats:summary.lm]{stats::summary.lm()}}.}
11
12 \item{conf.int}{Logical indicating whether or not to include a confidence
13 interval in the tidied output. Defaults to \code{FALSE}.}
14
15 \item{conf.level}{The confidence level to use for the confidence interval
16 if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1.
17 Defaults to 0.95, which corresponds to a 95 percent confidence interval.}
18
19 \item{...}{Additional arguments. Not used. Needed to match generic
20 signature only. \strong{Cautionary note:} Misspelled arguments will be
21 absorbed in \code{...}, where they will be ignored. If the misspelled
22 argument has a default value, the default value will be used.
23 For example, if you pass \code{conf.lvel = 0.9}, all computation will
24 proceed using \code{conf.level = 0.95}. Two exceptions here are:
25 \itemize{
26 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
27 it will be ignored.
28 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
29 will be ignored.
30 }}
31 }
32 \description{
33 Tidy summarizes information about the components of a model.
34 A model component might be a single term in a regression, a single
35 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
36 model component varies across models but is usually self-evident.
37 If a model has several distinct types of components, you will need to
38 specify which components to return.
39 }
40 \details{
41 The \code{tidy.summary.lm()} method is a potentially useful alternative
42 to \code{\link[=tidy.lm]{tidy.lm()}}. For instance, if users have already converted large \code{lm}
43 objects into their leaner \code{summary.lm} equivalents to conserve memory.
44 }
45 \examples{
46
47 # fit model
48 mod <- lm(mpg ~ wt + qsec, data = mtcars)
49 modsumm <- summary(mod)
50
51 # summarize model fit with tidiers
52 tidy(mod, conf.int = TRUE)
53
54 # equivalent to the above
55 tidy(modsumm, conf.int = TRUE)
56
57 glance(mod)
58
59 # mostly the same, except for a few missing columns
60 glance(modsumm)
61
62 }
63 \seealso{
64 \code{\link[=tidy]{tidy()}}, \code{\link[stats:summary.lm]{stats::summary.lm()}}
65
66 Other lm tidiers:
67 \code{\link{augment.glm}()},
68 \code{\link{augment.lm}()},
69 \code{\link{glance.glm}()},
70 \code{\link{glance.lm}()},
71 \code{\link{glance.summary.lm}()},
72 \code{\link{glance.svyglm}()},
73 \code{\link{tidy.glm}()},
74 \code{\link{tidy.lm}()},
75 \code{\link{tidy.lm.beta}()},
76 \code{\link{tidy.mlm}()}
77 }
78 \concept{lm tidiers}
79 \value{
80 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
81 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
82 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
83 \item{estimate}{The estimated value of the regression term.}
84 \item{p.value}{The two-sided p-value associated with the observed statistic.}
85 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
86 \item{std.error}{The standard error of the regression term.}
87 \item{term}{The name of the regression term.}
88
89 }