ONEcampaign / net_flows

Assessing net flows for developing countries
https://observablehq.com/@one-campaign/net-flows
MIT License
0 stars 0 forks source link

Project based on 5-year linear trends #22

Closed jm-rivera closed 3 months ago

jm-rivera commented 3 months ago

Project inflows based on 5-year linear trends, rather than 2-year averages. @sharcourt14, @Mattie-P, @lpicci96 FYI

jm-rivera commented 3 months ago

The code does a linear projection (via a linear regression) based on the previous 5 years (parametrised so we could easily change that). It projects 3 years forward (but also could extend that).

The projections are done by country and counterpart_area. If the trend goes negative, I assign a value of 0 (since there can be no negative inflows).