Package: segregation 1.1.0.9000

segregation: Entropy-Based Segregation Indices

Computes segregation indices, including the Index of Dissimilarity, as well as the information-theoretic indices developed by Theil (1971) <isbn:978-0471858454>, namely the Mutual Information Index (M) and Theil's Information Index (H). The M, further described by Mora and Ruiz-Castillo (2011) <doi:10.1111/j.1467-9531.2011.01237.x> and Frankel and Volij (2011) <doi:10.1016/j.jet.2010.10.008>, is a measure of segregation that is highly decomposable. The package provides tools to decompose the index by units and groups (local segregation), and by within and between terms. The package also provides a method to decompose differences in segregation as described by Elbers (2021) <doi:10.1177/0049124121986204>. The package includes standard error estimation by bootstrapping, which also corrects for small sample bias. The package also contains functions for visualizing segregation patterns.

Authors:Benjamin Elbers [aut, cre]

segregation_1.1.0.9000.tar.gz
segregation_1.1.0.9000.zip(r-4.5)segregation_1.1.0.9000.zip(r-4.4)segregation_1.1.0.9000.zip(r-4.3)
segregation_1.1.0.9000.tgz(r-4.5-x86_64)segregation_1.1.0.9000.tgz(r-4.5-arm64)segregation_1.1.0.9000.tgz(r-4.4-x86_64)segregation_1.1.0.9000.tgz(r-4.4-arm64)segregation_1.1.0.9000.tgz(r-4.3-x86_64)segregation_1.1.0.9000.tgz(r-4.3-arm64)
segregation_1.1.0.9000.tar.gz(r-4.5-noble)segregation_1.1.0.9000.tar.gz(r-4.4-noble)
segregation_1.1.0.9000.tgz(r-4.4-emscripten)segregation_1.1.0.9000.tgz(r-4.3-emscripten)
segregation.pdf |segregation.html
segregation/json (API)
NEWS

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

Bug tracker:https://github.com/elbersb/segregation/issues

Pkgdown site:https://elbersb.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • school_ses - Student-level data including SES status
  • schools00 - Ethnic/racial composition of schools for 2000/2001
  • schools05 - Ethnic/racial composition of schools for 2005/2006

On CRAN:

entropysegregationstatisticscpp

6.44 score 36 stars 51 scripts 433 downloads 19 exports 5 dependencies

Last updated 1 years agofrom:8a98c55c22. Checks:11 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 16 2025
R-4.5-win-x86_64OKFeb 16 2025
R-4.5-mac-x86_64OKFeb 16 2025
R-4.5-mac-aarch64OKFeb 16 2025
R-4.5-linux-x86_64OKFeb 16 2025
R-4.4-win-x86_64OKFeb 16 2025
R-4.4-mac-x86_64OKFeb 16 2025
R-4.4-mac-aarch64OKFeb 16 2025
R-4.3-win-x86_64OKFeb 16 2025
R-4.3-mac-x86_64OKFeb 16 2025
R-4.3-mac-aarch64OKFeb 16 2025

Exports:compressdissimilaritydissimilarity_expectedentropyexposureget_crosswalkipfisolationmatrix_to_longmerge_unitsmutual_differencemutual_expectedmutual_localmutual_totalmutual_total_nestedmutual_withinscree_plotsegcurvesegplot

Dependencies:backportscheckmatedata.tableRcppRcppProgress

A walkthrough of the segregation package

Rendered fromsegregation.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2023-08-24
Started: 2021-01-10

FAQ

Rendered fromfaq.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2024-01-30
Started: 2021-08-21

Visualizing and compressing segregation

Rendered fromplotting.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2023-12-01
Started: 2022-06-29