Skip to contents

Measures how stable funding amounts are for each destination over time. Computed as 1 - coefficient of variation of annual funding. Goal: Captures predictability of funding amounts over years (inverse of coefficient of variation).

Usage

indicator_destination_funding_stability(flows, destinations_df = NULL)

Arguments

flows

A dataframe with destinationObjects, budgetYear, and amountUSD.

destinations_df

(optional) A dataframe of destinations to merge results with.

Value

A list with a tibble with destination and Destination_Funding_Stability_Index and a plot.

Examples

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