# \[ANN\] Inequality.jl

**URL:** https://discourse.julialang.org/t/ann-inequality-jl/81059
**Category:** Package Announcements
**Tags:** announcement, economics
**Created:** [May 14, 2022, 11:33am UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059 "2022-05-14T11:33:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![JosepER](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joseper/32/34528_2.png) [@JosepER](https://discourse.julialang.org/u/JosepER)
#### Post date: [May 14, 2022, 11:33am UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/1 "2022-05-14T11:33:31Z")

</div>

[Inequality.jl](https://github.com/JosepER/Inequality.jl) has functions for the analysis of inequality and poverty indicators. It currently supports the estimation of the following (both weighted and unweighted):

- Gini Coefficient
- Atkinson Coefficient
- Lorenz Curve
- Generalized Entropy Index
- Theil Index
- Mean log deviation
- Watts Poverty Index
- Foster–Greer–Thorbecke Index
- Poverty Gap
- Headcount Ratio

It’s my first Julia package so coments, suggestions and contributions are more than welcome! 🙂

---

<div class="post-metadata">

### Author: ![jacobusmmsmit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacobusmmsmit/32/217669_2.png) [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)
#### Post date: [May 14, 2022, 12:35pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/2 "2022-05-14T12:35:51Z")

</div>

This looks like a very useful package to have for people working in those areas that’s well documented too!

I do feel that the name could have been chosen to be slightly more specific, such as `InequalityIndicators.jl` as it is more precise description of what the package provides and fits better with Julia’s package naming conventions.

I apologise that this is my only specific comment on the package (but perhaps this is a compliment to your documentation and concise code!).

---

<div class="post-metadata">

### Author: ![JosepER](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joseper/32/34528_2.png) [@JosepER](https://discourse.julialang.org/u/JosepER)
#### Post date: [May 15, 2022, 6:26pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/3 "2022-05-15T18:26:45Z")

</div>

Thanks very much for your feedback, Jacobus!

I’m planning to expand the package beyond the current indicators. Most likely including top-income adjustments and functions for processing income and wealth variables (e.g. equivalisations and CPI/PPP adjustments). Thus, I’ll probably keep the current general package name.

---

<div class="post-metadata">

### Author: ![grahamstark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grahamstark/32/5200_2.png) [@grahamstark](https://discourse.julialang.org/u/grahamstark)
#### Post date: [May 15, 2022, 7:01pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/4 "2022-05-15T19:01:54Z")

</div>

Hi,

I published [PovertyAndInequalityMeasures.jl](https://github.com/grahamstark/PovertyAndInequalityMeasures.jl) a while back, which covers much the same ground. Be interesting to see how they compare. Let a thousand flowers bloom and all that.

Graham

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [May 15, 2022, 7:04pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/5 "2022-05-15T19:04:46Z")

</div>

Thank you for the contribution.

The name means something very different to many Julia users,  
“inequality” is of a field of mathematics and some computer science.  
The orthographic root may be the same; the manner of consideration differs. Speaking for myself, I expected a package that provided tools for investigating or establishing inequations (a = b + c, an equation … replace `=` with another comparative relationship and there are many uses for the sort of expressions that result, see [Inequality of arithmetic and geometric means - Wikipedia](https://en.wikipedia.org/wiki/Inequality_of_arithmetic_and_geometric_means)). A name like that suggested above `InequalityIndictors` or `EconomicInequalities` or what you find more explanatory would help.

---

<div class="post-metadata">

### Author: ![JosepER](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joseper/32/34528_2.png) [@JosepER](https://discourse.julialang.org/u/JosepER)
#### Post date: [May 18, 2022, 8:26pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/6 "2022-05-18T20:26:09Z")

</div>

Thanks for your feedback, Jeffrey.

I now see why the package name might lead to confusion. I’ll seriously think about changing it.

---

<div class="post-metadata">

### Author: ![JosepER](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joseper/32/34528_2.png) [@JosepER](https://discourse.julialang.org/u/JosepER)
#### Post date: [May 18, 2022, 9:11pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/7 "2022-05-18T21:11:56Z")

</div>

Hi Graham.

I checked for other packages in the area before writing mine, but I completely missed yours. It’s great to see there’s other people working on inequalities/poverty using Julia!

---

<div class="post-metadata">

### Author: ![greatpet](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@greatpet](https://discourse.julialang.org/u/greatpet)
#### Post date: [May 18, 2022, 9:55pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/8 "2022-05-18T21:55:02Z")

</div>

> [@JeffreySarnoff](#):
>
> The name means something very different to many Julia users

Yes, when I saw the package name, I expected a package for solving mathematical inequalities.

---

<div class="post-metadata">

### Author: ![grahamstark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grahamstark/32/5200_2.png) [@grahamstark](https://discourse.julialang.org/u/grahamstark)
#### Post date: [May 19, 2022, 2:45pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059/9 "2022-05-19T14:45:17Z")

</div>

Yes, it’s good to see someone interested in the same stuff. It would be great to see a suite of survey-data related things in Julia, rather like R has. My wishlist includes:

- survey data weighting: I’ve got an [implementation](https://github.com/grahamstark/SurveyDataWeighting.jl) that does the job but could do with a lot of development and testing;
- data matching. Like the [R Statmatch package](https://cran.r-project.org/web/packages/StatMatch/index.html);
- multidimensional poverty and inequality;
- a nice tabulator, kind of like SPSS has.

You also mention equivalence scales in your bio. I have [a bunch of these](https://github.com/grahamstark/ScottishTaxBenefitModel.jl/blob/master/src/EquivalenceScales.jl) in a [sub-package of my tax-benefit model](https://github.com/grahamstark/ScottishTaxBenefitModel.jl). It’s inelegant code, but might be a start.

I’ll have a good look at your package. Looks more elegant than mine …

Graham
