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

Description Usage Arguments Value

View source: R/calculate_network_statistics.R

Description

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

Usage

1
2
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.


matthewjdenny/GERGM documentation built on May 15, 2018, 4:22 p.m.