Skip to contents

Measures the share of a recipient’s total funding that comes from a specific donor.

Usage

indicator_donor_recipient_concentration(
  flows,
  donor_recipient_pairs = NULL,
  donors = NULL,
  recipient_name = NULL
)

Arguments

flows

A dataframe with sourceObjects, destinationObjects, and amountUSD.

donor_recipient_pairs

(optional) A dataframe of donor–recipient pairs to merge results with.

donors

(optional used if recipient_name is provided ) A dataframe with donor names to merge with the results.

recipient_name

(optional) the name of a specific recipient to filter the results of the function

Value

A list with a tibble with donor, recipient, and DonorRecipient_Concentration_Index and a plot.

Details

Goal: Quantifies how dependent the recipient is on that donor (share of donor’s contribution among total received).

Examples

result <- indicator_donor_recipient_concentration(flows)
print(result$plot)
#> `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
#> Warning: Removed 1 row containing non-finite outside the scale range (`stat_bin()`).