Summarizing ERGM Model Fits
base::summary()
method for ergm()
fits.
## S3 method for class 'ergm' summary( object, ..., correlation = FALSE, covariance = FALSE, total.variation = TRUE ) ## S3 method for class '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, ... )
object |
an object of class "ergm", usually, a result of a call to
|
... |
For |
correlation |
logical; if |
covariance |
logical; if |
total.variation |
logical; if |
x |
object of class |
digits |
significant digits for coefficients |
signif.stars |
whether to print dots and stars to signify
statistical significance. See |
eps.Pvalue |
p-values below this level will be printed
as "< |
print.formula, print.fitinfo, print.coefmat, print.message, print.deviances, print.drop, print.offset, print.call |
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. The coeficient 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 function summary.ergm()
computes and returns a list of summary
statistics of the fitted ergm()
model given in object
. Note that for
backwards compatibility, it returns two coefficient tables: $coefs
which
does not contain the z-statistics and $coefficeints
which does (and is
therefore more similar to those returned by stats::summary.lm()
).
The returned object is a list of class "ergm.summary" with the following elements:
formula |
ERGM model formula |
call |
R call used to fit the model |
correlation, covariance |
whether to print correlation/covariance matrices of the estimated parameters |
pseudolikelihood |
was the model estimated with MPLE |
independence |
is the model dyad-independent |
control |
the |
samplesize |
MCMC sample size |
message |
optional message on the validity of the standard error estimates |
null.lik.0 |
It is |
devtext, devtable |
Deviance type and table |
aic, bic |
values of AIC and BIC |
coefs, coefficients |
data frames with model parameters and associated statistics |
asycov |
asymptotic covariance matrix |
asyse |
asymptotic standard error matrix |
offset, drop, estimate, iterations, mle.lik, null.lik |
see documentation of the object returned by |
The model fitting function ergm()
, print.ergm()
, and
base::summary()
. Function stats::coef()
will extract the data frame of
coefficients with standard errors, t-statistics and p-values.
data(florentine) x <- ergm(flomarriage ~ density) summary(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.