Skip to contents

Computes a weighted average earmarking flexibility score for each donor–destination pair. Higher values indicate more flexible (less earmarked) funding.

Usage

indicator_donor_destination_earmarking_flexibility(flows)

Arguments

flows

A dataframe containing sourceObjects, destinationObjects, amountUSD, and grandBargainEarmarkingType.

Value

A list with a tibble with donor, destination, Earmarking_Flexibility, and total_amount and a plot.

Details

Scoring:

  • unearmarked = 1.00

  • softly earmarked = 0.75

  • earmarked = 0.50

  • tightly earmarked = 0.25

The indicator helps understand donor behaviour: how flexible their funding is across crisis-affected destinations.

Examples

result <- indicator_donor_destination_earmarking_flexibility(flows)
print(result$plot)