Debian Codegraph @

man/tidy.mlm.Rd

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