Skip to contents

Calculates the entropy of funding sources per recipient, indicating how diversified a recipient’s funding base is across donors.

Usage

indicator_recipient_systemic_diversification(flows, recipients_df = NULL)

Arguments

flows

A dataframe including sourceObjects, destinationObjects, and amountUSD.

recipients_df

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

Value

A list with a tibble with recipient and Recipient_Diversification_Index (0–1 scale) and a plot.

Details

Goal: Measures how many donors contribute to each recipient, using entropy. High entropy = diversified funding base.

Examples

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