Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

clustering_tm

Redefined clustering coefficient for two-mode networks


Description

This function calculates the two-mode clustering coefficient as proposed by Opsahl (2010).

Usage

clustering_tm(net, subsample=1, seed=NULL)

Arguments

net

A binary or weighted two-mode edgelist

subsample

Whether a only a subset of 4-paths should we used when calculating the measure. This is particularly useful when running out of memory analysing large networks. If it is set to 1, all the 4-paths are analysed. If it set to a value below one, this is roughly the proportion of 4-paths that will be analysed. If it is set to an interger greater than 1, this number of ties that form the first part of a 4-path that will be analysed. Note: The C++ functions are better as they analyse the full network.

seed

If a subset of 4-paths is analysed, by setting this parameter, the results are reproducable.

Value

Returns the outcome of the equation presented in the paper

Note

version 1.0.0, taken, with permission, from package tnet

Author(s)

Tore Opsahl; https://toreopsahl.com

References

Opsahl, T. 2010. Triadic closure in two-mode networks: Redefining the global and local clustering coefficients. arXiv,1006.0887


bipartite

Visualising Bipartite Networks and Calculating Some (Ecological) Indices

v2.16
GPL
Authors
Carsten F. Dormann, Jochen Fruend and Bernd Gruber, with additional code from Stephen Beckett, Mariano Devoto, Gabriel Felix, Jose Iriondo, Tove Opsahl, Rafael Pinheiro, Rouven Strauss and Diego Vazquez, also based on C-code developed by Nils Bluethgen, Aaron Clauset/Rouven Strauss and Miguel Rodriguez-Girones
Initial release
2021-02-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.