Debian Codegraph @

man/tidy.speedglm.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/speedglm-speedglm.R
3 \name{tidy.speedglm}
4 \alias{tidy.speedglm}
5 \alias{speedglm_tidiers}
6 \title{Tidy a(n) speedglm object}
7 \usage{
8 \method{tidy}{speedglm}(x, conf.int = FALSE, conf.level = 0.95, exponentiate = FALSE, ...)
9 }
10 \arguments{
11 \item{x}{A \code{speedglm} object returned from \code{\link[speedglm:speedglm]{speedglm::speedglm()}}.}
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{exponentiate}{Logical indicating whether or not to exponentiate the
21 the coefficient estimates. This is typical for logistic and multinomial
22 regressions, but a bad idea if there is no log or logit link. Defaults
23 to \code{FALSE}.}
24
25 \item{...}{Additional arguments. Not used. Needed to match generic
26 signature only. \strong{Cautionary note:} Misspelled arguments will be
27 absorbed in \code{...}, where they will be ignored. If the misspelled
28 argument has a default value, the default value will be used.
29 For example, if you pass \code{conf.lvel = 0.9}, all computation will
30 proceed using \code{conf.level = 0.95}. Two exceptions here are:
31 \itemize{
32 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
33 it will be ignored.
34 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
35 will be ignored.
36 }}
37 }
38 \description{
39 Tidy summarizes information about the components of a model.
40 A model component might be a single term in a regression, a single
41 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
42 model component varies across models but is usually self-evident.
43 If a model has several distinct types of components, you will need to
44 specify which components to return.
45 }
46 \examples{
47 \dontshow{if (rlang::is_installed("speedglm")) withAutoprint(\{ # examplesIf}
48
49 # load libraries for models and data
50 library(speedglm)
51
52 # generate data
53 clotting <- data.frame(
54 u = c(5, 10, 15, 20, 30, 40, 60, 80, 100),
55 lot1 = c(118, 58, 42, 35, 27, 25, 21, 19, 18)
56 )
57
58 # fit model
59 fit <- speedglm(lot1 ~ log(u), data = clotting, family = Gamma(log))
60
61 # summarize model fit with tidiers
62 tidy(fit)
63 glance(fit)
64 \dontshow{\}) # examplesIf}
65 }
66 \seealso{
67 \code{\link[speedglm:speedglm]{speedglm::speedglm()}}
68
69 Other speedlm tidiers:
70 \code{\link{augment.speedlm}()},
71 \code{\link{glance.speedglm}()},
72 \code{\link{glance.speedlm}()},
73 \code{\link{tidy.speedlm}()}
74 }
75 \concept{speedlm tidiers}
76 \value{
77 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
78 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
79 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
80 \item{estimate}{The estimated value of the regression term.}
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 \item{term}{The name of the regression term.}
85
86 }