The ergm.getglobalstats
function is a low-level function not normally called by the user. It calculates and returns the global statistics for a given network and model.
ergm.getglobalstats(nw, m, response = NULL)
a network
object
the model in use with network nw
, as returned by ergm.getmodel
character name of an edge attribute to be used (for weighted ergm models)
returns a vector of the global statistics
Calculates and returns the global statistics for a given network via ergm.Cprepare
and network_stats_wrapper.C
or wt_network_stats_wrapper.C
if the model is weighted. It is called by summary.statistics.network
which is generally the better way to access the functionality.