elbersb / segregation

R package to calculate entropy-based segregation indices, with a focus on the Mutual Information Index (M) and Theil’s Information Index (H)
https://elbersb.com/segregation
Other
35 stars 3 forks source link

Decompose differences in local segregation over time #11

Closed JustinVisagie closed 2 years ago

JustinVisagie commented 2 years ago

Hi Ben,

Thanks very much for a really useful (and well documented!) segregation package. I'd like to look at changes in local segregation scores over time but decomposed so that they become 'net of margins'. You have a neat example of this in your paper but I'm struggling to see how to properly code for this. Do you perhaps have an example of your coding using your segregation package?

Thanks so much, Justin

elbersb commented 2 years ago

this has come up before, so I added an item to the FAQ https://elbersb.github.io/segregation/articles/faq.html#how-can-i-compute-margins-adjusted-local-segregation-scores

hope that helps!

JustinVisagie commented 2 years ago

Much appreciated!