base::summary()
method for ergm()
fits.
# S3 method for ergm
summary(
object,
...,
correlation = FALSE,
covariance = FALSE,
total.variation = TRUE
)# S3 method for summary.ergm
print(
x,
digits = max(3, getOption("digits") - 3),
correlation = x$correlation,
covariance = x$covariance,
signif.stars = getOption("show.signif.stars"),
eps.Pvalue = 1e-04,
print.formula = FALSE,
print.fitinfo = TRUE,
print.coefmat = TRUE,
print.message = TRUE,
print.deviances = TRUE,
print.drop = TRUE,
print.offset = TRUE,
print.call = TRUE,
...
)
The returned object is a list of class "ergm.summary" with the following elements:
ERGM model formula
R call used to fit the model
whether to print correlation/covariance matrices of the estimated parameters
was the model estimated with MPLE
is the model dyad-independent
the control.ergm()
object used
MCMC sample size
optional message on the validity of the standard error estimates
It is TRUE
of the null model likelihood has not been calculated. See logLikNull()
Deviance type and table
values of AIC and BIC
matrices with model parameters and associated statistics
asymptotic covariance matrix
asymptotic standard error matrix
see documentation of the object returned by ergm()
an object of class ergm
, usually, a result of a call to
ergm()
.
For summary.ergm()
additional arguments are passed to
logLik.ergm()
. For print.summary.ergm()
, to stats::printCoefmat()
.
logical; if TRUE
, the correlation matrix of the
estimated parameters is returned and printed.
logical; if TRUE
, the covariance matrix of the estimated
parameters is returned and printed.
logical; if TRUE
, the standard errors reported in
the Std. Error
column are based on the sum of the likelihood variation
and the MCMC variation. If FALSE
only the likelihood variation is used.
The \(p\)-values are based on this source of variation.
object of class summary.ergm
returned by summary.ergm()
.
significant digits for coefficients
whether to print dots and stars to signify
statistical significance. See print.summary.lm()
.
\(p\)-values below this level will be printed
as "<eps.Pvalue
".
which components of the fit summary to print.
summary.ergm()
tries to be smart about formatting the
coefficients, standard errors, etc.
The default printout of the summary object contains the call, number of iterations used, null and residual deviances, and the values of AIC and BIC (and their MCMC standard errors, if applicable). The coefficient table contains the following columns:
Estimate
, Std. Error
- parameter estimates and their standard errors
MCMC %
- if total.variation=TRUE
(default) the percentage of standard
error attributable to MCMC estimation process rounded to an integer. See
also vcov.ergm()
and its sources
argument.
z value
, Pr(>|z|)
- z-test and p-values
The model fitting function ergm()
, print.ergm()
, and
base::summary()
. Function stats::coef()
will extract the matrix of
coefficients with standard errors, t-statistics and p-values.
data(florentine)
x <- ergm(flomarriage ~ density)
summary(x)
Run the code above in your browser using DataLab