GoF: Conduct Goodness-of-Fit Diagnostics for a Signed ERGM
Description
Computes the goodness-of-fit (GoF) for a fitted signed exponential random
graph model (SERGM). The function simulates new networks using the fitted
model and compares key network statistics from the observed network with
those from the simulated ones.
Usage
GoF(model, nsim = 200, seed = NULL)
Value
Produces six diagnostic boxplots comparing observed and simulated
statistics for the fitted model.
Arguments
model
A fitted signed ERGM (SERGM) object.
nsim
Integer; number of simulated networks to generate. Defaults to 200.
seed
Optional integer seed for reproducibility. Passed to
set.seed.
Details
The following diagnostics are plotted:
Positive degree distribution
Negative degree distribution
Edgewise shared enemies distribution (positive edges)
Edgewise shared enemies distribution (negative edges)
Edgewise shared friends distribution (positive edges)
Edgewise shared friends distribution (negative edges)