Debian Codegraph @

man/tidy.robustbase.glmrob.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/robustbase-glmrob.R
3 \name{tidy.glmrob}
4 \alias{tidy.glmrob}
5 \title{Tidy a(n) glmrob object}
6 \usage{
7 \method{tidy}{glmrob}(x, conf.int = FALSE, conf.level = 0.95, ...)
8 }
9 \arguments{
10 \item{x}{A \code{glmrob} object returned from \code{\link[robustbase:glmrob]{robustbase::glmrob()}}.}
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{...}{Additional arguments. Not used. Needed to match generic
20 signature only. \strong{Cautionary note:} Misspelled arguments will be
21 absorbed in \code{...}, where they will be ignored. If the misspelled
22 argument has a default value, the default value will be used.
23 For example, if you pass \code{conf.lvel = 0.9}, all computation will
24 proceed using \code{conf.level = 0.95}. Two exceptions here are:
25 \itemize{
26 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
27 it will be ignored.
28 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
29 will be ignored.
30 }}
31 }
32 \description{
33 Tidy summarizes information about the components of a model.
34 A model component might be a single term in a regression, a single
35 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
36 model component varies across models but is usually self-evident.
37 If a model has several distinct types of components, you will need to
38 specify which components to return.
39 }
40 \details{
41 For tidiers for robust models from the \pkg{MASS} package see
42 \code{\link[=tidy.rlm]{tidy.rlm()}}.
43 }
44 \examples{
45
46 if (requireNamespace("robustbase", quietly = TRUE)) {
47 # load libraries for models and data
48 library(robustbase)
49
50 data(coleman)
51 set.seed(0)
52
53 m <- lmrob(Y ~ ., data = coleman)
54 tidy(m)
55 augment(m)
56 glance(m)
57
58 data(carrots)
59
60 Rfit <- glmrob(cbind(success, total - success) ~ logdose + block,
61 family = binomial, data = carrots, method = "Mqle",
62 control = glmrobMqle.control(tcc = 1.2)
63 )
64
65 tidy(Rfit)
66 augment(Rfit)
67 }
68 }
69 \seealso{
70 \code{\link[robustbase:glmrob]{robustbase::glmrob()}}
71
72 Other robustbase tidiers:
73 \code{\link{augment.glmrob}()},
74 \code{\link{augment.lmrob}()},
75 \code{\link{glance.lmrob}()},
76 \code{\link{tidy.lmrob}()}
77 }
78 \concept{robustbase tidiers}
79 \value{
80 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
81 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
82 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
83 \item{estimate}{The estimated value of the regression term.}
84 \item{p.value}{The two-sided p-value associated with the observed statistic.}
85 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
86 \item{std.error}{The standard error of the regression term.}
87 \item{term}{The name of the regression term.}
88
89 }