Guinea-Martin, DanielMora, RicardoUniversidad Carlos III de Madrid. Departamento de Economía2022-02-152021-01-272021-01-272340-5031https://hdl.handle.net/10016/31803There are eight multigroup segregation indices that are decompos- able into a between and a within term. They are two versions of (a) the mutual information, (b) the symmetric Atkinson, (c) the relative diversity, and (d) the Theil's H index. In this article we present the Stata command dseg for obtaining all of them. It contributes to the stock of segregation commands in Stata by (1) implementing in a single call the decomposition; (2) providing the weights and local indices employed in the computation of the within term; (3) facilitating the deployment of the decomposability properties of the eight indices in complex scenarios that demand tailor-made solutions; and (4) leveraging sample data with bootstrapping and approximate randomization tests. We analyze 2017 census data of public schools in the United States to illustrate the use of dseg. The subject topic is school racial segregation.engAtribución-NoComercial-SinDerivadas 3.0 EspañaAtkinsonDecomposabilityMultigroupMutual InformationRaceRelative DiversityTheil'S HSchoolsSegregationComputing decomposable multigroup indexes of segregationworking paperDT/0000001868