Debian Codegraph @

man/tidy.geeglm.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/geepack.R
3 \name{tidy.geeglm}
4 \alias{tidy.geeglm}
5 \alias{geeglm_tidiers}
6 \alias{geepack_tidiers}
7 \title{Tidy a(n) geeglm object}
8 \usage{
9 \method{tidy}{geeglm}(x, conf.int = FALSE, conf.level = 0.95, exponentiate = FALSE, ...)
10 }
11 \arguments{
12 \item{x}{A \code{geeglm} object returned from a call to \code{\link[geepack:geeglm]{geepack::geeglm()}}.}
13
14 \item{conf.int}{Logical indicating whether or not to include a confidence
15 interval in the tidied output. Defaults to \code{FALSE}.}
16
17 \item{conf.level}{The confidence level to use for the confidence interval
18 if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1.
19 Defaults to 0.95, which corresponds to a 95 percent confidence interval.}
20
21 \item{exponentiate}{Logical indicating whether or not to exponentiate the
22 the coefficient estimates. This is typical for logistic and multinomial
23 regressions, but a bad idea if there is no log or logit link. Defaults
24 to \code{FALSE}.}
25
26 \item{...}{Additional arguments. Not used. Needed to match generic
27 signature only. \strong{Cautionary note:} Misspelled arguments will be
28 absorbed in \code{...}, where they will be ignored. If the misspelled
29 argument has a default value, the default value will be used.
30 For example, if you pass \code{conf.lvel = 0.9}, all computation will
31 proceed using \code{conf.level = 0.95}. Two exceptions here are:
32 \itemize{
33 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
34 it will be ignored.
35 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
36 will be ignored.
37 }}
38 }
39 \description{
40 Tidy summarizes information about the components of a model.
41 A model component might be a single term in a regression, a single
42 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
43 model component varies across models but is usually self-evident.
44 If a model has several distinct types of components, you will need to
45 specify which components to return.
46 }
47 \details{
48 If \code{conf.int = TRUE}, the confidence interval is computed with
49 the an internal \code{confint.geeglm()} function.
50
51 If you have missing values in your model data, you may need to
52 refit the model with \code{na.action = na.exclude} or deal with the
53 missingness in the data beforehand.
54 }
55 \examples{
56 \dontshow{if (rlang::is_installed("geepack")) withAutoprint(\{ # examplesIf}
57
58 # load modeling library
59 library(geepack)
60
61 # load data
62 data(state)
63
64
65 ds <- data.frame(state.region, state.x77)
66
67 # fit model
68 geefit <- geeglm(Income ~ Frost + Murder,
69 id = state.region,
70 data = ds,
71 corstr = "exchangeable"
72 )
73
74 # summarize model fit with tidiers
75 tidy(geefit)
76 tidy(geefit, conf.int = TRUE)
77 \dontshow{\}) # examplesIf}
78 }
79 \seealso{
80 \code{\link[=tidy]{tidy()}}, \code{\link[geepack:geeglm]{geepack::geeglm()}}
81 }
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 }