| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/ordinal-clmm.R |
| 3 |
\name{glance.clmm} |
| 4 |
\alias{glance.clmm} |
| 5 |
\title{Glance at a(n) clmm object} |
| 6 |
\usage{ |
| 7 |
\method{glance}{clmm}(x, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A \code{clmm} object returned from \code{\link[ordinal:clmm]{ordinal::clmm()}}.} |
| 11 |
|
| 12 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 13 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 14 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 15 |
argument has a default value, the default value will be used. |
| 16 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 17 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 18 |
\itemize{ |
| 19 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 20 |
it will be ignored. |
| 21 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 22 |
will be ignored. |
| 23 |
}} |
| 24 |
} |
| 25 |
\description{ |
| 26 |
Glance accepts a model object and returns a \code{\link[tibble:tibble]{tibble::tibble()}} |
| 27 |
with exactly one row of model summaries. The summaries are typically |
| 28 |
goodness of fit measures, p-values for hypothesis tests on residuals, |
| 29 |
or model convergence information. |
| 30 |
|
| 31 |
Glance never returns information from the original call to the modeling |
| 32 |
function. This includes the name of the modeling function or any |
| 33 |
arguments passed to the modeling function. |
| 34 |
|
| 35 |
Glance does not calculate summary measures. Rather, it farms out these |
| 36 |
computations to appropriate methods and gathers the results together. |
| 37 |
Sometimes a goodness of fit measure will be undefined. In these cases |
| 38 |
the measure will be reported as \code{NA}. |
| 39 |
|
| 40 |
Glance returns the same number of columns regardless of whether the |
| 41 |
model matrix is rank-deficient or not. If so, entries in columns |
| 42 |
that no longer have a well-defined value are filled in with an \code{NA} |
| 43 |
of the appropriate type. |
| 44 |
} |
| 45 |
\examples{ |
| 46 |
\dontshow{if (rlang::is_installed("ordinal")) withAutoprint(\{ # examplesIf} |
| 47 |
|
| 48 |
# load libraries for models and data |
| 49 |
library(ordinal) |
| 50 |
|
| 51 |
# fit model |
| 52 |
fit <- clmm(rating ~ temp + contact + (1 | judge), data = wine) |
| 53 |
|
| 54 |
# summarize model fit with tidiers |
| 55 |
tidy(fit) |
| 56 |
tidy(fit, conf.int = TRUE, conf.level = 0.9) |
| 57 |
tidy(fit, conf.int = TRUE, exponentiate = TRUE) |
| 58 |
|
| 59 |
glance(fit) |
| 60 |
|
| 61 |
# ...and again with another model specification |
| 62 |
fit2 <- clmm(rating ~ temp + (1 | judge), nominal = ~contact, data = wine) |
| 63 |
|
| 64 |
tidy(fit2) |
| 65 |
glance(fit2) |
| 66 |
\dontshow{\}) # examplesIf} |
| 67 |
} |
| 68 |
\seealso{ |
| 69 |
\link{tidy}, \code{\link[ordinal:clmm]{ordinal::clmm()}} |
| 70 |
|
| 71 |
Other ordinal tidiers: |
| 72 |
\code{\link{augment.clm}()}, |
| 73 |
\code{\link{augment.polr}()}, |
| 74 |
\code{\link{glance.clm}()}, |
| 75 |
\code{\link{glance.polr}()}, |
| 76 |
\code{\link{glance.svyolr}()}, |
| 77 |
\code{\link{tidy.clm}()}, |
| 78 |
\code{\link{tidy.clmm}()}, |
| 79 |
\code{\link{tidy.polr}()}, |
| 80 |
\code{\link{tidy.svyolr}()} |
| 81 |
} |
| 82 |
\concept{ordinal tidiers} |
| 83 |
\value{ |
| 84 |
A \code{\link[tibble:tibble]{tibble::tibble()}} with exactly one row and columns: |
| 85 |
\item{AIC}{Akaike's Information Criterion for the model.} |
| 86 |
\item{BIC}{Bayesian Information Criterion for the model.} |
| 87 |
\item{edf}{The effective degrees of freedom.} |
| 88 |
\item{logLik}{The log-likelihood of the model. [stats::logLik()] may be a useful reference.} |
| 89 |
\item{nobs}{Number of observations used.} |
| 90 |
|
| 91 |
} |