Open PenguinSmith opened 4 years ago
Hi @PenguinSmith
Thanks for your patience on this. I was on leave, and just saw your message. The fill_gaps argument seems to be working fine.
Running df <- povcalnet(fill_gaps = FALSE)
returns a 1962 observations, while df <- povcalnet(fill_gaps = TRUE)
returns 2671 observations.
The isinterpolated
variable is misleading, and its behavior will be updated in a future release. Please ignore it for now.
Hope that helps!
Hi, The argument
fill_gaps
ofpovcalnet()
is described as "logical: 'TRUE' will interpolate / extrapolate values when surveys are not available for a specific year." However, no interpolated result (poverty headcount/gini etc) is returned when this argument isTRUE
. I requested data for all countries withfill_gaps==TRUE
and got a returned dataframe with a variableisinterpolated
. It turns out thatisinterpolated
is always0
(indicates no interpolation), and the total amount of data is equal to that withfill_gaps==FALSE
.Is there a mistake in this function or something I have misunderstood? Really need the interpolated data (or methodology). Thanks in advance.