Package: netseg 1.0-4

netseg: Measures of Network Segregation and Homophily

Segregation is a network-level property such that edges between predefined groups of vertices are relatively less likely. Network homophily is a individual-level tendency to form relations with people who are similar on some attribute (e.g. gender, music taste, social status, etc.). In general homophily leads to segregation, but segregation might arise without homophily. This package implements descriptive indices measuring homophily/segregation. It is a computational companion to Bojanowski & Corten (2014) <doi:10.1016/j.socnet.2014.04.001>.

Authors:Michal Bojanowski [aut, cre]

netseg_1.0-4.tar.gz
netseg_1.0-4.zip(r-4.7)netseg_1.0-4.zip(r-4.6)netseg_1.0-4.zip(r-4.5)
netseg_1.0-4.tgz(r-4.6-any)netseg_1.0-4.tgz(r-4.5-any)
netseg_1.0-4.tar.gz(r-4.7-any)netseg_1.0-4.tar.gz(r-4.6-any)
netseg_1.0-4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
netseg/json (API)
NEWS

# Install 'netseg' in R:
install.packages('netseg', repos = c('https://mbojan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mbojan/netseg/issues

Pkgdown/docs site:https://mbojan.github.io

Datasets:
  • Catania - Pattern of sexual contacts in AMEN study
  • Classroom - Classroom network
  • EF3 - Example data from Figure III of Echenique and Fryer
  • WhiteKinship - White's data on Effective Kinship Networks

On CRAN:

Conda:

homophilysegregationsocial-networks

5.21 score 18 stars 18 scripts 243 downloads 13 exports 11 dependencies

Last updated from:0c810eff09. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK133
source / vignettesOK233
linux-release-x86_64OK133
macos-release-arm64OK89
macos-oldrel-arm64OK99
windows-develOK86
windows-releaseOK72
windows-oldrelOK88
wasm-releaseOK141

Exports:assortcolemaneifoldfreemangamixgroup_sizesmixingdfmixingmorwgsmissisymmetrize

Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixpkgconfigrlangvctrs

Network Segregation and Homophily

Rendered fromnetseg.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2021-02-17
Started: 2020-07-22

Readme and manuals

Help Manual

Help pageTopics
netseg: Measures of Network Segregation and Homophilynetseg-package netseg
Assortativity Coefficientassort assort.default assort.igraph assort.table
Pattern of sexual contacts in AMEN studyCatania
Classroom networkClassroom
Coleman's homophily indexcoleman coleman.default coleman.igraph coleman.table
Example data from Figure III of Echenique and Fryer (2006)EF3
Krackhard and Stern's E-I indexei ei.default ei.igraph ei.table
Folding square matrices around the diagonalfold
Generalized Freeman's segregation indexfreeman freeman.default freeman.igraph freeman.table
Gupta-Anderson-May measure of within-group mixinggamix gamix.default gamix.igraph gamix.table
Computing group sizes from square mixing matricesgroup_sizes
Network mixing matrixmixingdf mixingdf.igraph mixingdf.table mixingm mixingm.igraph
Odds ratio of existence of within-group tiesorwg orwg.default orwg.igraph orwg.table
Segregation Matrix Indexsmi smi.default smi.igraph smi.table
Spectral Segregation Index for Social Networksssi
Symmetrize square numeric matrixsymmetrize
White's data on Effective Kinship NetworksWhiteKinship