Learn R Programming

GERGM (version 0.13.0)

calculate_network_statistics: A Function to estimate calculate (weighted) network statistics

Description

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

Usage

calculate_network_statistics(network, weights = NULL,
  downweight_statistics_together = TRUE, include_diagonal = FALSE)

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 down weighting should be done together or separately. Defaults to TRUE.

include_diagonal

Logical indicating whether the diagonal should be included in the network statistics. Defaults to FALSE.

Value

A gergm object containing parameter estimates.