<?xml version="1.0" encoding="UTF-8"?>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:title>Rolling Shapley Values</dc:title>
  <dc:title>R package rollshap version 1.0.1</dc:title>
  <dc:description>Analytical computation of rolling and expanding Shapley values for time-series data. The 'rollshap' package decomposes the coefficient of determination (R-squared) of a linear regression into nonnegative contributions from each explanatory variable using the Shapley value from cooperative game theory (Shapley, 1953, &lt;doi:10.1515/9781400881970-018&gt;). For each window, the exact Shapley value is computed by fitting all subsets of the explanatory variables and averaging the marginal contribution to R-squared across all orderings, which returns an order-invariant attribution that sums to the full-model R-squared. Use cases include variable importance, factor attribution, and feature selection in time-series regression. The package supports rolling and expanding windows, weights, and handling of missing values via 'min_obs', 'complete_obs', and 'na_restore' arguments. The implementation uses the online and offline algorithms from the 'roll' package to compute rolling and expanding cross-products efficiently with parallelism across columns and windows provided by 'RcppParallel'.</dc:description>
  <dc:type>Software</dc:type>
  <dc:relation>Depends: R (&gt;= 3.0.2)</dc:relation>
  <dc:relation>Imports: Rcpp, RcppParallel</dc:relation>
  <dc:relation>LinkingTo: Rcpp, RcppArmadillo, RcppParallel, roll (&gt;= 1.1.7)</dc:relation>
  <dc:relation>Suggests: covr, testthat, zoo, relaimpo, roll</dc:relation>
  <dc:creator>Jason Foster &lt;jason.j.foster@gmail.com&gt;</dc:creator>
  <dc:publisher>Comprehensive R Archive Network (CRAN)</dc:publisher>
  <dc:contributor>Jason Foster [aut, cre]</dc:contributor>
  <dc:rights>GPL (&gt;= 2)</dc:rights>
  <dc:date>2026-05-21</dc:date>
  <dc:format>application/tgz</dc:format>
  <dc:identifier>https://CRAN.R-project.org/package=rollshap</dc:identifier>
  <dc:identifier>doi:10.32614/CRAN.package.rollshap</dc:identifier>
</oai_dc:dc>
