I have invested some time and effort to create this package. Please cite 'netseg' in your publications with:

Bojanowski M (2021). Measures of Network Segregation and Homophily. R package version 1.0-1, https://mbojan.github.io/netseg/.

Bojanowski M, Corten R (2014). “Measuring Segregation in Social Networks.” Social Networks, 39, 14–32. doi:10.1016/j.socnet.2014.04.001.

Corresponding BibTeX entries:

  @Manual{r-netseg,
    title = {Measures of Network Segregation and Homophily},
    author = {Michal Bojanowski},
    year = {2021},
    note = {R package version 1.0-1},
    url = {https://mbojan.github.io/netseg/},
  }
  @Article{r-netseg-article,
    title = {Measuring Segregation in Social Networks},
    author = {Michal Bojanowski and Rense Corten},
    journal = {Social Networks},
    year = {2014},
    volume = {39},
    pages = {14--32},
    doi = {10.1016/j.socnet.2014.04.001},
  }