-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange poverty gap in China at $5.50 in the '80s #31
Comments
Hi @randrescastaneda , @danielmahler, I looked at this issue and I noticed that the 1982 and 1983 (rural and national) data points are not similar for PovCalNet and PIP. Would it be possible to check the pip data source for those two years? Thanks, |
Thanks for looking into this Tefera!!
That's super weird. We don't have data for China for 1982 and 1983 - we are interpolating data between 1981 and 1984. Is the 1981 data for China similar between PovcalNet and PIP?
|
Hi @randrescastaneda , @danielmahler, The 1981 data points are similar. |
Thanks Tefera. I think the issue is with the 1981 rural data.
It has a mean consumption of $1, but a poverty gap of 1. Those are inconsistent -- a poverty gap of 1 means that everyone in society has 0$. Perhaps the formula for how the poverty_gap and poverty_severity is calculated for group data is off?
Best,
Daniel
|
Hi @danielmahler, I can't replicate the results you mention. Could you please send me the code where the poverty gap is 1? The table below is what I got. Thanks. |
Sorry about that, here you go :) |
Yes, you're right. I replicated the issue. I think the problem is with the fitting of the lorenz at the tail of the distribution. Perhaps it changes from one model to the other (I don't really have an easy way to check that). It is clear that there is a discontinuity around $3.3. Code to replicatelibrary(data.table)
library(ggplot2)
pl <- seq(.5, 3.7, length.out = 100)
chn <- purrr::map_df(pl,
~{
x <- pipr::get_stats("CHN", 1981, povline = .x)
setDT(x)
x[, .
(reporting_level,
mean,
headcount,
poverty_gap,
poverty_severity,
poverty_line)]
}
)
chnm <- melt(chn,
id.vars = c("reporting_level", "poverty_line"),
variable.name = "measure",
value.name = "value")
ggplot(chnm[reporting_level == "national" & measure != "mean"],
aes(x = poverty_line,
y = value,
color = measure) ) +
geom_line()
|
Hi all, I'm seeing some strange patterns with China's poverty gap in the 1980s at $5.50. Strange meaning that it differs quite a bit between PovcalNet and PIP even though the headcount rates are identical. Here is some code to understand what I find.
The text was updated successfully, but these errors were encountered: