Learn R Programming

nemBM (version 1.00.01)

WeightedNetworkStatistics: Weighted network statistics

Description

It calculates the weighted network statistics, considering the selected local network mecahnisms and their weights.

Usage

WeightedNetworkStatistics(X, formula, theta, actor, randomSD = 0)

Value

The data frame with one column and the number of rows equal to the number of units.

Arguments

X

Binary network; of class matrix.

formula

The list of local netork mechanisms to be considered.

theta

A vector with the mechanisms' weights/strengths.

actor

A unit (actor; row/column number), which have an opportunity to change a link.

randomSD

The srandard deviation of a normal distribution form which the random part of weighed network statistics is sampled.

Author

Marjan Cugmas and Aleš Žiberna

Examples

Run this code
formula <- list(mutuality, popularity, OTPtransitivity)
X <- matrix(sample(c(0,1), size = 9**2, replace = TRUE), nrow = 9)
WeightedNetworkStatistics(X = X, formula = formula, theta = c(1, 1, 1), actor = 1)

Run the code above in your browser using DataLab