Total impact per factor at every year from a sequential decomposition
Source:R/decompose.R
sequential_totals.RdSums the step attributions of a shapley_decompose() run across
decomposition steps: the total impact of factor i at year T is
\(\sum_{y \le T} \phi_i^{(y)}(T)\), where \(\phi_i^{(y)}(T)\) is the
Shapley value at year T of the year-y policy (extended_decomp). Summed
over factors this telescopes to (observed) - (all policies off from the first
decomp year) at every T, so it is only meaningful when decomp_years
is contiguous.
Arguments
- result
The list returned by
shapley_decompose()withextended = TRUE.
See also
shapley_decompose, whose examples call this function.