shapley | R Documentation |
Compute Shapley Value Decompositions
shapley(vfun, factors, outcomes = "value", silent = FALSE, ...)
vfun |
A value function. |
factors |
A vector of factors, passed to |
outcomes |
Column names for outcome values (usually this is only one). |
silent |
If FALSE (the default), prints a progress bar. |
... |
Additional arguments passed to |
Returns a data frame with N rows, where N is the number of factors.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.