shapley: Compute Shapley Value Decompositions

View source: R/shapley.R

shapleyR Documentation

Compute Shapley Value Decompositions

Description

Compute Shapley Value Decompositions

Usage

shapley(vfun, factors, outcomes = "value", silent = FALSE, ...)

Arguments

vfun

A value function.

factors

A vector of factors, passed to vfun.

outcomes

Column names for outcome values (usually this is only one).

silent

If FALSE (the default), prints a progress bar.

...

Additional arguments passed to vfun.

Value

Returns a data frame with N rows, where N is the number of factors.

References

Shapley, L. S. (1953). A value for n-person games. Contributions to the Theory of Games, 2(28), 307-317.

Shorrocks, A. F. (2013). Decomposition procedures for distributional analysis: a unified framework based on the Shapley value. Journal of Economic Inequality, 1-28.


elbersb/shapley documentation built on Jan. 17, 2024, 1:59 a.m.