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