Debian Codegraph @

man/glance.ergm.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/ergm.R
3 \name{glance.ergm}
4 \alias{glance.ergm}
5 \title{Glance at a(n) ergm object}
6 \usage{
7 \method{glance}{ergm}(x, deviance = FALSE, mcmc = FALSE, ...)
8 }
9 \arguments{
10 \item{x}{An \code{ergm} object returned from a call to \code{\link[ergm:ergm]{ergm::ergm()}}.}
11
12 \item{deviance}{Logical indicating whether or not to report null and
13 residual deviance for the model, as well as degrees of freedom. Defaults
14 to \code{FALSE}.}
15
16 \item{mcmc}{Logical indicating whether or not to report MCMC interval,
17 burn-in and sample size used to estimate the model. Defaults to \code{FALSE}.}
18
19 \item{...}{Additional arguments to pass to \code{\link[ergm:summary.formula]{ergm::summary()}}.
20 \strong{Cautionary note}: Misspecified arguments may be silently ignored.}
21 }
22 \value{
23 \code{glance.ergm} returns a one-row tibble with the columns
24 \item{independence}{Whether the model assumed dyadic independence}
25 \item{iterations}{The number of MCMLE iterations performed before convergence}
26 \item{logLik}{If applicable, the log-likelihood associated with the model}
27 \item{AIC}{The Akaike Information Criterion}
28 \item{BIC}{The Bayesian Information Criterion}
29
30 If \code{deviance = TRUE}, and if the model supports it, the
31 tibble will also contain the columns
32 \item{null.deviance}{The null deviance of the model}
33 \item{df.null}{The degrees of freedom of the null deviance}
34 \item{residual.deviance}{The residual deviance of the model}
35 \item{df.residual}{The degrees of freedom of the residual deviance}
36 }
37 \description{
38 Glance accepts a model object and returns a \code{\link[tibble:tibble]{tibble::tibble()}}
39 with exactly one row of model summaries. The summaries are typically
40 goodness of fit measures, p-values for hypothesis tests on residuals,
41 or model convergence information.
42
43 Glance never returns information from the original call to the modeling
44 function. This includes the name of the modeling function or any
45 arguments passed to the modeling function.
46
47 Glance does not calculate summary measures. Rather, it farms out these
48 computations to appropriate methods and gathers the results together.
49 Sometimes a goodness of fit measure will be undefined. In these cases
50 the measure will be reported as \code{NA}.
51
52 Glance returns the same number of columns regardless of whether the
53 model matrix is rank-deficient or not. If so, entries in columns
54 that no longer have a well-defined value are filled in with an \code{NA}
55 of the appropriate type.
56 }
57 \seealso{
58 \code{\link[=glance]{glance()}}, \code{\link[ergm:ergm]{ergm::ergm()}}, \code{\link[ergm:summary.ergm]{ergm::summary.ergm()}}
59
60 Other ergm tidiers:
61 \code{\link{tidy.ergm}()}
62 }
63 \concept{ergm tidiers}