Debian Codegraph @

man/tidy.clmm.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/ordinal-clmm.R
3 \name{tidy.clmm}
4 \alias{tidy.clmm}
5 \title{Tidy a(n) clmm object}
6 \usage{
7 \method{tidy}{clmm}(x, conf.int = FALSE, conf.level = 0.95, exponentiate = FALSE, ...)
8 }
9 \arguments{
10 \item{x}{A \code{clmm} object returned from \code{\link[ordinal:clmm]{ordinal::clmm()}}.}
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{exponentiate}{Logical indicating whether or not to exponentiate the
20 the coefficient estimates. This is typical for logistic and multinomial
21 regressions, but a bad idea if there is no log or logit link. Defaults
22 to \code{FALSE}.}
23
24 \item{...}{Additional arguments. Not used. Needed to match generic
25 signature only. \strong{Cautionary note:} Misspelled arguments will be
26 absorbed in \code{...}, where they will be ignored. If the misspelled
27 argument has a default value, the default value will be used.
28 For example, if you pass \code{conf.lvel = 0.9}, all computation will
29 proceed using \code{conf.level = 0.95}. Two exceptions here are:
30 \itemize{
31 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
32 it will be ignored.
33 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
34 will be ignored.
35 }}
36 }
37 \description{
38 Tidy summarizes information about the components of a model.
39 A model component might be a single term in a regression, a single
40 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
41 model component varies across models but is usually self-evident.
42 If a model has several distinct types of components, you will need to
43 specify which components to return.
44 }
45 \note{
46 In \verb{broom 0.7.0} the \code{coefficient_type} column was renamed to
47 \code{coef.type}, and the contents were changed as well.
48
49 Note that \code{intercept} type coefficients correspond to \code{alpha}
50 parameters, \code{location} type coefficients correspond to \code{beta}
51 parameters, and \code{scale} type coefficients correspond to \code{zeta}
52 parameters.
53 }
54 \examples{
55 \dontshow{if (rlang::is_installed("ordinal")) withAutoprint(\{ # examplesIf}
56
57 # load libraries for models and data
58 library(ordinal)
59
60 # fit model
61 fit <- clmm(rating ~ temp + contact + (1 | judge), data = wine)
62
63 # summarize model fit with tidiers
64 tidy(fit)
65 tidy(fit, conf.int = TRUE, conf.level = 0.9)
66 tidy(fit, conf.int = TRUE, exponentiate = TRUE)
67
68 glance(fit)
69
70 # ...and again with another model specification
71 fit2 <- clmm(rating ~ temp + (1 | judge), nominal = ~contact, data = wine)
72
73 tidy(fit2)
74 glance(fit2)
75 \dontshow{\}) # examplesIf}
76 }
77 \seealso{
78 \link{tidy}, \code{\link[ordinal:clmm]{ordinal::clmm()}}, \code{\link[ordinal:confint.clm]{ordinal::confint.clm()}}
79
80 Other ordinal tidiers:
81 \code{\link{augment.clm}()},
82 \code{\link{augment.polr}()},
83 \code{\link{glance.clm}()},
84 \code{\link{glance.clmm}()},
85 \code{\link{glance.polr}()},
86 \code{\link{glance.svyolr}()},
87 \code{\link{tidy.clm}()},
88 \code{\link{tidy.polr}()},
89 \code{\link{tidy.svyolr}()}
90 }
91 \concept{ordinal tidiers}
92 \value{
93 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
94 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
95 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
96 \item{estimate}{The estimated value of the regression term.}
97 \item{p.value}{The two-sided p-value associated with the observed statistic.}
98 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
99 \item{std.error}{The standard error of the regression term.}
100 \item{term}{The name of the regression term.}
101
102 }