The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

shapleydecomp: Shapley Value Decomposition for Discrete-Time Simulation Models

Attributes changes in the outcomes of a discrete-time simulation model to its input factors using Shapley values (Shapley 1953) <doi:10.1515/9781400881970-018>, which for binary factors coincide with the symmetric standardization of Das Gupta (1993) <https://www2.census.gov/library/publications/1993/demographics/p23-186.pdf>. Any calibrated model can be decomposed by implementing four S3 methods that run the model, summarize its output, and construct counterfactual inputs. Counterfactuals either remove a factor entirely or hold it at its value in a baseline year, and a sequential decomposition attributes each year's policy conditional on the past.

Version: 1.0.0
Depends: R (≥ 4.0.0)
Imports: data.table, parallel, utils
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-11-03
DOI: 10.32614/CRAN.package.shapleydecomp (may not be active yet)
Author: Austin Carter [aut, cre]
Maintainer: Austin Carter <aucarter at uw.edu>
BugReports: https://github.com/aucarter/shapleydecomp/issues
License: MIT + file LICENSE
URL: https://github.com/aucarter/shapleydecomp, https://aucarter.github.io/shapleydecomp/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: shapleydecomp results

Documentation:

Reference manual: shapleydecomp.html , shapleydecomp.pdf
Vignettes: Methods (source, R code)
Get started (source, R code)

Downloads:

Package source: shapleydecomp_1.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: shapleydecomp_1.0.0.zip, r-oldrel: shapleydecomp_1.0.0.zip
macOS binaries: r-release (arm64): shapleydecomp_1.0.0.tgz, r-oldrel (arm64): shapleydecomp_1.0.0.tgz, r-release (x86_64): shapleydecomp_1.0.0.tgz, r-oldrel (x86_64): shapleydecomp_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=shapleydecomp to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.