Debian Codegraph @

man/tidy.biglm.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/biglm.R
3 \name{tidy.biglm}
4 \alias{tidy.biglm}
5 \title{Tidy a(n) biglm object}
6 \usage{
7 \method{tidy}{biglm}(x, conf.int = FALSE, conf.level = 0.95, exponentiate = FALSE, ...)
8 }
9 \arguments{
10 \item{x}{A \code{biglm} object created by a call to \code{\link[biglm:biglm]{biglm::biglm()}} or
11 \code{\link[biglm:bigglm]{biglm::bigglm()}}.}
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("biglm")) withAutoprint(\{ # examplesIf}
48
49 # load modeling library
50 library(biglm)
51
52 # fit model -- linear regression
53 bfit <- biglm(mpg ~ wt + disp, mtcars)
54
55 # summarize model fit with tidiers
56 tidy(bfit)
57 tidy(bfit, conf.int = TRUE)
58 tidy(bfit, conf.int = TRUE, conf.level = .9)
59
60 glance(bfit)
61
62 # fit model -- logistic regression
63 bgfit <- bigglm(am ~ mpg, mtcars, family = binomial())
64
65 # summarize model fit with tidiers
66 tidy(bgfit)
67 tidy(bgfit, exponentiate = TRUE)
68 tidy(bgfit, conf.int = TRUE)
69 tidy(bgfit, conf.int = TRUE, conf.level = .9)
70 tidy(bgfit, conf.int = TRUE, conf.level = .9, exponentiate = TRUE)
71
72 glance(bgfit)
73 \dontshow{\}) # examplesIf}
74 }
75 \seealso{
76 \code{\link[=tidy]{tidy()}}, \code{\link[biglm:biglm]{biglm::biglm()}}, \code{\link[biglm:bigglm]{biglm::bigglm()}}
77
78 Other biglm tidiers:
79 \code{\link{glance.biglm}()}
80 }
81 \concept{biglm tidiers}
82 \value{
83 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
84 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
85 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
86 \item{estimate}{The estimated value of the regression term.}
87 \item{p.value}{The two-sided p-value associated with the observed statistic.}
88 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
89 \item{std.error}{The standard error of the regression term.}
90 \item{term}{The name of the regression term.}
91
92 }