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 |
| Reference manual: | shapleydecomp.html , shapleydecomp.pdf |
| Vignettes: |
Methods (source, R code) Get started (source, R code) |
| Package source: | shapleydecomp_1.0.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=shapleydecomp to link to this page.