A Function to estimate calculate (weighted) network statistics

Share:

Description

Calculates out2stars, in2stars, ctriads, mutual, ttriads, and edges statistics (with or without exponential downweighting) for a real-valued network.

Usage

1
2
calculate_network_statistics(network, weights = NULL,
  downweight_statistics_together = TRUE)

Arguments

network

A square numeric matrix (sociomatrix or adjacency matrix) representing the network.

weights

If you wish to provide your own weights, you must provide a vector of length 6 with terms corresponding to out2stars, in2stars, ctriads, mutual, ttriads, edges in that order.

downweight_statistics_together

Logical indicating whether exponential downweighting should be done together or separately. Defaults to TRUE.

Value

A gergm object containing parameter estimates.