{
  "_id": "6a4a905a1e9cffeb4b833d4b",
  "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-07-05 16:57:11 UTC",
  "RemoteUrl": "https://github.com/jasonjfoster/rollshap",
  "RemoteRef": "HEAD",
  "RemoteSha": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-05 17:07:48 UTC",
    "User": "root"
  },
  "Author": "Jason Foster [aut, cre]",
  "Maintainer": "Jason Foster <jason.j.foster@gmail.com>",
  "_user": "jasonjfoster",
  "_type": "src",
  "_file": "rollshap_1.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/83177b9d918593826f52c3bcad48c1f6f0e45fef5ad85241613264641b4f498d",
  "_filesize": 97234,
  "_sha256": "83177b9d918593826f52c3bcad48c1f6f0e45fef5ad85241613264641b4f498d",
  "_expires": "2026-10-13T17:11:52.000Z",
  "_created": "2026-07-05T17:07:48.000Z",
  "_published": "2026-07-05T17:11:54.418Z",
  "_jobs": [
    {
      "job": 85243253997,
      "time": 144,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8093958415"
    },
    {
      "job": 85243254002,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8093957430"
    },
    {
      "job": 85243254017,
      "time": 145,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8093958350"
    },
    {
      "job": 85243254010,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8093956932"
    },
    {
      "job": 85243254028,
      "time": 75,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8093949418"
    },
    {
      "job": 85243254025,
      "time": 189,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8093963666"
    },
    {
      "job": 85243254019,
      "time": 91,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8093951043"
    },
    {
      "job": 85243254018,
      "time": 181,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8093962505"
    },
    {
      "job": 85242971814,
      "time": 233,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8093939289"
    },
    {
      "job": 85243253973,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8093959832"
    },
    {
      "job": 85243253995,
      "time": 162,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8093960280"
    },
    {
      "job": 85243254014,
      "time": 144,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8093957939"
    },
    {
      "job": 85243253998,
      "time": 130,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8093956191"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497",
  "_status": "success",
  "_upstream": "https://github.com/jasonjfoster/rollshap",
  "_commit": {
    "id": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
    "author": "Jason Foster <jason.j.foster@gmail.com>",
    "committer": "Jason Foster <jason.j.foster@gmail.com>",
    "message": "Version: 1.0.2\n",
    "time": 1783270631
  },
  "_maintainer": {
    "name": "Jason Foster",
    "email": "jason.j.foster@gmail.com",
    "login": "jasonjfoster",
    "description": "",
    "uuid": 7542282
  },
  "_distro": "resolute",
  "_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
    },
    {
      "week": "2026-24",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "algorithms",
    "rcpp",
    "shapley",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "jasonjfoster",
      "count": 43,
      "uuid": 7542282
    }
  ],
  "_userbio": {
    "uuid": 7542282,
    "type": "user",
    "name": "Jason Foster",
    "followers": 29
  },
  "_downloads": {
    "count": 449,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rollshap"
  },
  "_devurl": "https://github.com/jasonjfoster/rollshap",
  "_searchresults": 2,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "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.32+ds-5",
      "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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 4.352182518111363,
  "_indexed": true,
  "_nocasepkg": "rollshap",
  "_universes": [
    "jasonjfoster"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/0b5e73f99dbdb26136ae431ed0ccba43f9ec782ed657beee9af9f397a5ecd471",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:15.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/30d09193ea8caf002b030089a1e51c1186aa620996afd91457314bb7f911d051",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/2047bcfe1e60de13a6262aff7f28aa7d83d0e188af15d36d3b4f334d7275a20a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:11.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/8924b41bd00445da11202a735308fce39f80740777855b85005ef482a1aae98c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-07-05T17:09:26.000Z",
      "arch": "aarch64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/f9f8939150bde261b1f1ffc8ee62d1ff6161d2969bf0012468e3b1f7a91a8d3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:51.000Z",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/36659a78bd147b63898fe09c3ef6c311008b3cbd9f8f1f337e991f0951f5fa84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-07-05T17:09:24.000Z",
      "arch": "aarch64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/0a2a2397805197d063eb6a369305f653083ae66a56740127b40ca58d483a6014",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:45.000Z",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/7f35f448eca86ae708d6b0bf6de636e0d7bc2d25ac005ec780f393bced747241",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:46.000Z",
      "arch": "emscripten",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/2a58979665d1c040ce721e369c93dcf8b95060ddec7cad90d8d0ab6df346fb2a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-07-05T17:10:07.000Z",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/9c0dc441c5c917752bee6c70727d40974d186d84502c09624d964f057598e337",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-07-05T17:09:53.000Z",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/8eb4d66e8f0a57d0f51dcf428e158b22ac2061d1c5aa1b61236d9857ea6abda0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-07-05T17:09:39.000Z",
      "arch": "x86_64",
      "commit": "a9a0eccad6dadaa3e6ea333a13cb989aee43f248",
      "fileid": "https://r2.ropensci.org/232e95d106cb9168d1adc13f57f0956724ac727e00c063cb7418f7464423851f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28748313497"
    }
  ]
}