View source: R/WeightedNetworkStatistics.R
WeightedNetworkStatistics | R Documentation |
It calculates the weighted network statistics, considering the selected local network mecahnisms and their weights.
WeightedNetworkStatistics(X, formula, theta, actor, randomSD = 0)
X |
Binary network; of class |
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. |
The data frame with one column and the number of rows equal to the number of units.
Marjan Cugmas and Aleš Žiberna
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.