Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corybrunson/bitriad
R package for triadic analysis of affiliation networks
https://github.com/corybrunson/bitriad
affiliation-networks bipartite-graphs clustering-coefficient igraph network-analysis r triad-census triad-closure
Last synced: about 1 month ago
JSON representation
R package for triadic analysis of affiliation networks
- Host: GitHub
- URL: https://github.com/corybrunson/bitriad
- Owner: corybrunson
- Created: 2014-06-02T13:09:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T15:29:04.000Z (almost 5 years ago)
- Last Synced: 2024-11-02T02:42:30.425Z (3 months ago)
- Topics: affiliation-networks, bipartite-graphs, clustering-coefficient, igraph, network-analysis, r, triad-census, triad-closure
- Language: HTML
- Homepage: http://corybrunson.github.io/bitriad/
- Size: 12.1 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bitriad
=======This repo constitutes an R package, and contains data and tools for the triadic analysis of affiliation networks.
## Description
The paper [*Triadic analysis of affiliation networks*](http://arxiv.org/abs/1502.07016) makes a case for adopting a batch of triad-based tools for the study of (bipartite) affiliation networks. Most of the tools used therein are included in this package, which is built mostly on the [**igraph** package](http://igraph.org/r/). No new classes have been defined yet, but several back-end functions are written in C++ without reference to the **igraph** library. Any suggestions would be welcome.
## Installation
The package is not yet on CRAN; it can be installed using the [devtools](https://github.com/hadley/devtools) package:
```r
devtools::install_github("corybrunson/bitriad")
```## Functionality
The package implements several tools from the paper, most importantly
* `triad_census()`, which surveys the *triads* of an affiliation network and returns the census in a specified *scheme*; and
* `triad_closure()`, which surveys the *wedges* of an affiliation network and returns either global or local proportions of wedges that are *closed*.The parameters for these functions, in particular the census schemes and the definitions of wedge and closure, are thoroughly documented in `help(triad_census)` and `help(triad_closure)`. Both functions pass to their corresponding functions in **igraph** when the input graph is not an affiliation network.
## Datasets
Empirical affiliation networks from the following sources are included as datasets:
* Davis(, Davis), Gardner, Gardner(, and St Clair Drake)'s [*Deep South: A Social Anthropological Study of Caste and Class*](http://www.amazon.com/Deep-South-Anthropological-Southern-Classics/dp/1570038155), p. 148 (`women_group`) and p. 209 (`women_clique`);
* Scott and Hughes' [*The Anatomy of Scottish Capital*](http://books.google.com/books?id=59mvAwAAQBAJ), specifically Table 2, covering 1920-21 (`scotland1920s`);
* Galaskiewicz's [*Social Organization of an Urban Grants Economy*](http://books.google.com/books?id=Vd25AAAAIAAJ), specifically a subset reproduced in Faust's ["Centrality in affiliation networks"](http://www.socsci.uci.edu/~kfaust/faust/research/articles/faust_centrality_sn_1997.pdf) (`minneapolis1970s`);
* Barnes and Burkett's ["Structural Redundancy and Multiplicity in Corporate Networks"](http://www.insna.org/PDF/Connections/v30/2010_I-2_P-1-1.pdf) (`chicago1960s`);
* [Noordin Top Terrorist Network Data](http://www.thearda.com/Archive/Files/Descriptions/TERRNET.asp), using meetings (`nmt_meetings`) and organizations (`nmt_organizations`) as events;
* Fischer's [*Paul Revere's Ride*](http://books.google.com/books/about/Paul_Revere_s_Ride.html?id=ZAvQfZFbLp4C), Appendix D, as used in Han's ["The Other Ride of Paul Revere"](http://www.sscnet.ucla.edu/polisci/faculty/chwe/ps269/han.pdf) (`whigs`).## Documentation
The vignette `southern_women` outlines an analysis of `women_clique` and `women_group` using the censuses, some clustering coefficients, and other tools.
The full documentation is built into [a **bitriad** website](http://corybrunson.github.io/bitriad/) using [pkgdown](https://github.com/hadley/pkgdown).