Debian Codegraph @

man/tidy.negbin.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/mass-negbin.R
3 \name{tidy.negbin}
4 \alias{tidy.negbin}
5 \title{Tidy a(n) negbin object}
6 \usage{
7 \method{tidy}{negbin}(x, conf.int = FALSE, conf.level = 0.95, exponentiate = FALSE, ...)
8 }
9 \arguments{
10 \item{x}{A \code{glm.nb} object returned by \code{\link[MASS:glm.nb]{MASS::glm.nb()}}.}
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{exponentiate}{Logical indicating whether or not to exponentiate the
20 the coefficient estimates. This is typical for logistic and multinomial
21 regressions, but a bad idea if there is no log or logit link. Defaults
22 to \code{FALSE}.}
23
24 \item{...}{For \code{tidy()}, additional arguments passed to \code{\link[=summary]{summary()}}.
25 Otherwise ignored.}
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("MASS")) withAutoprint(\{ # examplesIf}
37
38 # load libraries for models and data
39 library(MASS)
40
41 # fit model
42 r <- glm.nb(Days ~ Sex / (Age + Eth * Lrn), data = quine)
43
44 # summarize model fit with tidiers
45 tidy(r)
46 glance(r)
47 \dontshow{\}) # examplesIf}
48 }
49 \seealso{
50 \code{\link[MASS:glm.nb]{MASS::glm.nb()}}
51
52 Other glm.nb tidiers:
53 \code{\link{glance.negbin}()}
54 }
55 \concept{glm.nb tidiers}