{
  "_id": "6a223afdcd65a98ecbd43cf6",
  "Type": "Package",
  "Package": "rollshap",
  "Title": "Rolling Shapley Values",
  "Version": "1.0.2",
  "Authors@R": "person(\"Jason\", \"Foster\", , \"jason.j.foster@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Analytical computation of rolling and expanding Shapley\nvalues for time-series data. The 'rollshap' package decomposes\nthe coefficient of determination (R-squared) of a linear\nregression into nonnegative contributions from each explanatory\nvariable using the Shapley value from cooperative game theory\n(Shapley, 1953, <doi:10.1515/9781400881970-018>). For each\nwindow, the exact Shapley value is computed by fitting all\nsubsets of the explanatory variables and averaging the marginal\ncontribution to R-squared across all orderings, which returns\nan order-invariant attribution that sums to the full-model\nR-squared. Use cases include variable importance, factor\nattribution, and feature selection in time-series regression.\nThe package supports rolling and expanding windows, weights,\nand handling of missing values via the min_obs, complete_obs,\nand na_restore arguments. The implementation uses the online\nand offline algorithms from the 'roll' package to compute\nrolling and expanding cross-products efficiently, with\nparallelism across columns and windows provided by\n'RcppParallel'.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/jasonjfoster/rollshap",
  "BugReports": "https://github.com/jasonjfoster/rollshap/issues",
  "Config/roxygen2/old_usage": "TRUE",
  "Config/roxygen2/version": "8.0.0",
  "Encoding": "UTF-8",
  "SystemRequirements": "GNU make",
  "Config/pak/sysreqs": "make",
  "Repository": "https://jasonjfoster.r-universe.dev",
  "Date/Publication": "2026-06-05 00:00:34 UTC",
  "RemoteUrl": "https://github.com/jasonjfoster/rollshap",
  "RemoteRef": "HEAD",
  "RemoteSha": "ebf9fdc4a39159a627e443688720443802ce76f5",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-05 02:51:23 UTC",
    "User": "root"
  },
  "Author": "Jason Foster [aut, cre]",
  "Maintainer": "Jason Foster <jason.j.foster@gmail.com>",
  "MD5sum": "03dbfddc8cb72b6fed29b0faebd3f6d1",
  "_user": "jasonjfoster",
  "_type": "src",
  "_file": "rollshap_1.0.2.tar.gz",
  "_fileid": "e93aaafcbef3e29231d8bee3de7e0c421d8edbae689e5a44d2c3b1f25f47425b",
  "_filesize": 96458,
  "_sha256": "e93aaafcbef3e29231d8bee3de7e0c421d8edbae689e5a44d2c3b1f25f47425b",
  "_created": "2026-06-05T02:51:23.000Z",
  "_published": "2026-06-05T02:57:01.648Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79655019382,
      "time": 135,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7427817501"
    },
    {
      "job": 79655019360,
      "time": 133,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7427816462"
    },
    {
      "job": 79655019355,
      "time": 189,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427826407"
    },
    {
      "job": 79655019352,
      "time": 140,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427817966"
    },
    {
      "job": 79655019349,
      "time": 89,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7427808111"
    },
    {
      "job": 79655019350,
      "time": 291,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7427842806"
    },
    {
      "job": 79655019343,
      "time": 94,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427808924"
    },
    {
      "job": 79655019348,
      "time": 193,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427826523"
    },
    {
      "job": 79654740024,
      "time": 184,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427791014"
    },
    {
      "job": 79655019337,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427812853"
    },
    {
      "job": 79655019363,
      "time": 119,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7427813733"
    },
    {
      "job": 79655019366,
      "time": 100,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7427810425"
    },
    {
      "job": 79655019386,
      "time": 159,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427820967"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jasonjfoster/rollshap",
  "_commit": {
    "id": "ebf9fdc4a39159a627e443688720443802ce76f5",
    "author": "Jason Foster <jason.j.foster@gmail.com>",
    "committer": "Jason Foster <jason.j.foster@gmail.com>",
    "message": "Version: 1.0.2\n",
    "time": 1780617634
  },
  "_maintainer": {
    "name": "Jason Foster",
    "email": "jason.j.foster@gmail.com",
    "login": "jasonjfoster",
    "description": "",
    "uuid": 7542282
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "role": "LinkingTo"
    },
    {
      "package": "roll",
      "version": ">= 1.1.7",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "relaimpo",
      "role": "Suggests"
    },
    {
      "package": "roll",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "zoo",
      "role": "Suggests"
    }
  ],
  "_owner": "jasonjfoster",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-52",
      "n": 9
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 2
    },
    {
      "week": "2026-20",
      "n": 1
    },
    {
      "week": "2026-21",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 3
    }
  ],
  "_tags": [],
  "_topics": [
    "algorithms",
    "rcpp",
    "shapley",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "jasonjfoster",
      "count": 40,
      "uuid": 7542282
    }
  ],
  "_userbio": {
    "uuid": 7542282,
    "type": "user",
    "name": "Jason Foster"
  },
  "_downloads": {
    "count": 217,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rollshap"
  },
  "_devurl": "https://github.com/jasonjfoster/rollshap",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rollshap.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jasonjfoster/rollshap",
  "_realowner": "jasonjfoster",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2026-05-21"
    }
  ],
  "_exports": [
    "roll_shap"
  ],
  "_help": [
    {
      "page": "rollshap-package",
      "title": "Rolling Shapley Values",
      "topics": [
        "rollshap-package",
        "rollshap"
      ]
    },
    {
      "page": "roll_shap",
      "title": "Rolling Shapley Values",
      "topics": [
        "roll_shap"
      ]
    }
  ],
  "_readme": "https://github.com/jasonjfoster/rollshap/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp",
    "RcppArmadillo",
    "RcppParallel",
    "roll"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 4.290034611362518,
  "_indexed": true,
  "_nocasepkg": "rollshap",
  "_universes": [
    "jasonjfoster"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:46.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "276f86ad93b32d9f0265073f813d1c992a7152605f0d85cea5248bdf2c9d5283",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:40.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "6af0754f83312610f9cd4ca72b07a69f20a2710d58e5627bd29453b08701e968",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-06-05T02:54:38.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "6cc96fe453699853bcd26cb96d6e41a9d851f1197df5e278e48931c22312cabf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "775863dc03fe7bf7700941388d92058ae51bb6a7225b7ab6c735bbed9a22eed8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:04.000Z",
      "arch": "aarch64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "56c3ee4dec0885f1f97c048d08edc46417f4cfd6bef2d05f639e98ca657f717d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-06-05T02:55:33.000Z",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "052069a19498258e537e9cc13e57bd6443c63fa13584a4aac018faf2ca12697f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:05.000Z",
      "arch": "aarch64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "122af0a8f7f205d4ac858c9e4a69fa30d0233dbc10233e82260a6a8139baf372",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-06-05T02:54:23.000Z",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "bd04aa9faf29f00c9bf5e1c41094bf78d683f041ffd75fb25bf3cc32f24a1169",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:35.000Z",
      "arch": "emscripten",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "1ce4a45cce6798de3a0b699b861236d43af42382c23a17f614b69426e84f5316",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-06-05T02:52:49.000Z",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "f8b9b360dbbfc575cca95a24c4575f927476445311c32d37a59251910c3df82c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-06-05T02:52:42.000Z",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "5772a7462176a3892e8bb1e327a0acdddeeea7096dac47f40b01db0c52332189",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-06-05T02:53:04.000Z",
      "arch": "x86_64",
      "commit": "ebf9fdc4a39159a627e443688720443802ce76f5",
      "fileid": "e8177f65b1d5cc73283cc28dc3533853e9512e3383820071533041064b7f3742",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/26992284573"
    }
  ]
}