projecting_tm: Projecting binary and weighted two-mode networks onto...

Description Usage Arguments Value Note Author(s) References Examples

Description

This function is the implemtation of the procedure outlined on
http://toreopsahl.com/2009/05/01/projecting-two-mode-networks-onto-weighted-one-mode-networks/

Usage

1
projecting_tm(net, method = "sum")

Arguments

net

A two-mode edgelist

method

The method-switch control the method used to calculate the weights.
binary sets all weights to 1
sum sets the weights to the number of cooccurances
Newman bases the weights on Newman's (2001) method of discounting for the size of collaborations.

Value

Returns a one-mode network

Note

version 1.0.0

Author(s)

Tore Opsahl; http://toreopsahl.com

References

Opsahl. T., 2009. Projecting two-mode networks onto weighted one-mode networks. Available at: http://toreopsahl.com/2009/05/01/projecting-two-mode-networks-onto-weighted-one-mode-networks/

Examples

1
2
3
4
5
6
7
## define two-mode network
two.mode.net <- cbind(
i=c(1,1,2,2,2,2,2,3,4,5,5,5,6),
p=c(1,2,1,2,3,4,5,2,3,4,5,6,6))

## Run the function
projecting_tm(two.mode.net, method="Newman")

tnet documentation built on Feb. 25, 2020, 1:07 a.m.