Learn R Programming

ergm (version 3.8.0)

ergm.getglobalstats: internal function to return global statistics for a given network

Description

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.

Usage

ergm.getglobalstats(nw, m, response = NULL)

Arguments

nw

a network object

m

the model in use with network nw, as returned by ergm.getmodel

response

character name of an edge attribute to be used (for weighted ergm models)

Value

returns a vector of the global statistics

Details

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.

See Also

summary.statistics.network