Not really that important, but pip() fails when povline is NULL, which is the default.
The reason it fails is because wbpip:::md_compute_poverty_stats() has a threshold for pov_status <- (welfare < povline_lcu).
Setting povline to NULL does ofc not make a lot of sense, but I don't think the function should fail with its default arguments. We could for example set the default povline to 1.9 or modify the relevant code in {wbpip}.
Not really that important, but
pip()
fails when povline is NULL, which is the default.The reason it fails is because
wbpip:::md_compute_poverty_stats()
has a threshold forpov_status <- (welfare < povline_lcu)
.Setting povline to NULL does ofc not make a lot of sense, but I don't think the function should fail with its default arguments. We could for example set the default povline to 1.9 or modify the relevant code in
{wbpip}
.