Learn R Programming

Bergm (version 1.4)

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 family random graph models.

Usage

bgof(out, 
     directed = FALSE, 
     lags = 100, 
     n.sim = NULL, 
     aux.iter = 10000, 
     n.deg = NULL, 
     n.dist = NULL, 
     n.esp = NULL, 
     n.ideg = NULL, 
     n.odeg = NULL, 
     save = FALSE)

Arguments

out
an R object of class bergm.
directed
logical; TRUE if the observed graph is directed.
lags
count; interval between each sampled posterior parameter value.
n.sim
count; number of sampled parameter values.
aux.iter
count; number of iterations used for network simulation.
n.deg
count; used to plot only the first n.deg-1 degree distributions.
n.dist
count; used to plot only the first n.dist-1 geodesic distances distributions.
n.esp
count; used to plot only the first n.esp-1 edge-wise shared partner distributions.
n.ideg
count; used to plot only the first n.ideg-1 in-degree distributions.
n.odeg
count; used to plot only the first n.odeg-1 out-degree distributions.
save
logical; if TRUE a file called "bgof.out" is saved in the working directory.

See Also

bergm.