ergm.getglobalstats {ergm}R Documentation

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)

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.

Value

returns a vector of the global statistics

See Also

summary.statistics.network


[Package ergm version 3.4.0 Index]