Debian Codegraph @

man/tidy.svyolr.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/survey.R
3 \name{tidy.svyolr}
4 \alias{tidy.svyolr}
5 \alias{svyolr_tidiers}
6 \title{Tidy a(n) svyolr object}
7 \usage{
8 \method{tidy}{svyolr}(x, conf.int = FALSE, conf.level = 0.95, exponentiate = FALSE, ...)
9 }
10 \arguments{
11 \item{x}{A \code{svyolr} object returned from \code{\link[survey:svyolr]{survey::svyolr()}}.}
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 \details{
47 The \code{tidy.svyolr()} tidier is a light wrapper around
48 \code{\link[=tidy.polr]{tidy.polr()}}. However, the implementation for p-value calculation
49 in \code{\link[=tidy.polr]{tidy.polr()}} is both computationally intensive and specific to that
50 model, so the \code{p.values} argument to \code{tidy.svyolr()} is currently ignored,
51 and will raise a warning when passed.
52 }
53 \examples{
54 \dontshow{if (rlang::is_installed(c("survey", "MASS"))) withAutoprint(\{ # examplesIf}
55 library(broom)
56 library(survey)
57
58 data(api)
59 dclus1 <- svydesign(id = ~dnum, weights = ~pw, data = apiclus1, fpc = ~fpc)
60 dclus1 <- update(dclus1, mealcat = cut(meals, c(0, 25, 50, 75, 100)))
61
62 m <- svyolr(mealcat ~ avg.ed + mobility + stype, design = dclus1)
63
64 m
65
66 tidy(m, conf.int = TRUE)
67 \dontshow{\}) # examplesIf}
68 }
69 \seealso{
70 \link{tidy}, \code{\link[survey:svyolr]{survey::svyolr()}}
71
72 Other ordinal tidiers:
73 \code{\link{augment.clm}()},
74 \code{\link{augment.polr}()},
75 \code{\link{glance.clm}()},
76 \code{\link{glance.clmm}()},
77 \code{\link{glance.polr}()},
78 \code{\link{glance.svyolr}()},
79 \code{\link{tidy.clm}()},
80 \code{\link{tidy.clmm}()},
81 \code{\link{tidy.polr}()}
82 }
83 \concept{ordinal tidiers}
84 \value{
85 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
86 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
87 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
88 \item{estimate}{The estimated value of the regression term.}
89 \item{p.value}{The two-sided p-value associated with the observed statistic.}
90 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
91 \item{std.error}{The standard error of the regression term.}
92 \item{term}{The name of the regression term.}
93
94 }