Learn R Programming

Bergm (version 2.5)

bgof: Bayesian goodness-of-fit diagnostics

Description

Calculates summaries for degree, minimum geodesic distances, and edge-wise shared partner distributions to diagnose the Bayesian goodness-of-fit of exponential random graph models.

Usage

bgof(x, 
     directed = FALSE, 
     sample.size=100,
     aux.iters = 10000, 
     n.deg = NULL, 
     n.dist = NULL, 
     n.esp = NULL, 
     n.ideg = NULL, 
     n.odeg = NULL,
     ...)

Arguments

x
an R object of class bergm.
directed
logical; TRUE if the observed graph is directed.
sample.size
count; number of networks to be simulated and compared to the observed network.
aux.iters
count; number of iterations used for network simulation.
n.deg
count; used to plot only the first n.deg-1 degree distributions. By default no restrictions on the number of degree distributions is applied.
n.dist
count; used to plot only the first n.dist-1 geodesic distances distributions. By default no restrictions on the number of geodesic distances distributions is applied.
n.esp
count; used to plot only the first n.esp-1 edge-wise shared partner distributions. By default no restrictions on the number of edge-wise shared partner distributions is applied.
n.ideg
count; used to plot only the first n.ideg-1 in-degree distributions. By default no restrictions on the number of in-degree distributions is applied.
n.odeg
count; used to plot only the first n.odeg-1 out-degree distributions. By default no restrictions on the number of out-degree distributions is applied.
...
additional arguments, to be passed to lower-level functions.

See Also

bergm.