PIP-Technical-Team / wbpip

Official methodological Stats of PIP
https://pip-technical-team.github.io/wbpip/
Other
3 stars 1 forks source link

Add spl to dist functions and improve the speed of md_compute_lorenz #229

Open randrescastaneda opened 1 year ago

randrescastaneda commented 1 year ago

Hi @tonyfujs ,

In this PR I made small changes in several places.

  1. include SPL functions that @zander-prinsloo developed into all general *dist*() functions that are used in the pipeline.
  2. Optimize the performance of md_compute_lorenz().
  3. Added lifecycle calls to deprecate the old lorenz function, md_compute_lorenz_old()
  4. Made a few improvement in the was son functions were designed. For instance, I created the funtion md_compute_fgt() as we did not have a function to estimates poverty rates. They were estimated inside other more general functions.

All the tests have passed.

image