graph kernel Stein statistics for goodness-of-fit tests on Exponential Random Graph Models (ERGM)
the code is in R
pre-installed R librray required:
"ergm"; "network"; "igraph"; "graphkernels"; "MASS"
This repo includes:
Base_fun.R: contains functions for computing kernels, performing tests, and related
demo.R: a demo code on how to implement the tests and use functions from Base_fun.R
exp_realdata: guide code to implement real data networks.
108_senmatrix.txt and senate.csv: data made for co-sponsorship network example.