Skip to contents

Calculates the Herfindahl–Hirschman concentration index (HHI) for each donor, based on the distribution of funding amounts across recipient organizations. A higher value means the donor funds fewer recipients more heavily.

Usage

indicator_donor_systemic_concentration(flows, donors = NULL, donor_name = NULL)

Arguments

flows

A dataframe including sourceObjects, destinationObjects, and amountUSD.

donors

(optional) A dataframe with donor names to merge with the results.

donor_name

Optional donor name to highlight in the plot.

Value

A list with a tibble with donor and Donor_Concentration_Index (0–1 scale) and a plot.

Details

Goal: Measures how concentrated a donor’s portfolio is across recipients.

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()`).