{
  "_id": "6a1023c1acfb0bcc41c8d87e",
  "Package": "qshap",
  "Type": "Package",
  "Title": "Fast Calculation of Feature Contributions in Boosting Trees",
  "Version": "1.0.1",
  "Date": "2026-05-03",
  "Authors@R": "c(\nperson(\"Steven\", \"He\", role = \"aut\", email = \"hess1@uci.edu\"),\nperson(\"Zhongli\", \"Jiang\", role = c(\"aut\", \"cre\"),\nemail = \"zhongli.jiang.stats@gmail.com\"),\nperson(\"Dabao\", \"Zhang\", role = \"aut\", email = \"zdb969@hs.uci.edu\"))",
  "Description": "Computes feature-specific R-squared (R2) contributions for\nboosting tree models using a Shapley-value-based decomposition\nof the total R-squared in polynomial time. Supports models\nfitted with 'XGBoost', 'LightGBM', and 'CatBoost', with\noptimized backend-specific implementations and cached tree\nsummaries suitable for large-scale problems. Multiple\nvisualization tools are included for interpreting and\ncommunicating feature contributions. The methodology is\ndescribed in Jiang, Zhang, and Zhang (2025)\n<doi:10.48550/arXiv.2407.03515>. Optional 'CatBoost' support\nuses the R package 'catboost', which is not distributed on\nCRAN; installation instructions and released binaries are\nprovided by the CatBoost project at\n<https://catboost.ai/docs/en/concepts/r-installation>.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/catstats/Q-SHAP_R",
  "BugReports": "https://github.com/catstats/Q-SHAP_R/issues",
  "RoxygenNote": "7.3.2",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "make",
  "Repository": "https://catstats.r-universe.dev",
  "Date/Publication": "2026-05-13 14:10:44 UTC",
  "RemoteUrl": "https://github.com/catstats/q-shap_r",
  "RemoteRef": "HEAD",
  "RemoteSha": "0d56323cdb958aae2092f35ca511f9b14482cca1",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-13 14:38:02 UTC",
    "User": "root"
  },
  "Author": "Steven He [aut],\nZhongli Jiang [aut, cre],\nDabao Zhang [aut]",
  "Maintainer": "Zhongli Jiang <zhongli.jiang.stats@gmail.com>",
  "MD5sum": "f88aaad914535a5797d14a7ce95a2e4f",
  "_user": "catstats",
  "_type": "src",
  "_file": "qshap_1.0.1.tar.gz",
  "_fileid": "7504050f9f43ba31ddc5e87a5aa62916781ca4d5b2e41ac31c248c954615575a",
  "_filesize": 151883,
  "_sha256": "7504050f9f43ba31ddc5e87a5aa62916781ca4d5b2e41ac31c248c954615575a",
  "_created": "2026-05-13T14:38:02.000Z",
  "_published": "2026-05-22T09:37:05.424Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77354014368,
      "time": 176,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6973176290"
    },
    {
      "job": 77354014585,
      "time": 190,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6973184845"
    },
    {
      "job": 77354014881,
      "time": 156,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6973168045"
    },
    {
      "job": 77354014637,
      "time": 166,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6973172341"
    },
    {
      "job": 77354015043,
      "time": 115,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6973150850"
    },
    {
      "job": 77354014696,
      "time": 318,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6973238123"
    },
    {
      "job": 77354014430,
      "time": 313,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6973235396"
    },
    {
      "job": 77354014660,
      "time": 283,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6973225467"
    },
    {
      "job": 77354012841,
      "time": 199,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6973100380"
    },
    {
      "job": 77354014057,
      "time": 129,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157422390"
    },
    {
      "job": 77354014343,
      "time": 148,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6973165111"
    },
    {
      "job": 77354014595,
      "time": 130,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6973156979"
    },
    {
      "job": 77354014785,
      "time": 132,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6973159575"
    }
  ],
  "_buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/catstats/q-shap_r",
  "_commit": {
    "id": "0d56323cdb958aae2092f35ca511f9b14482cca1",
    "author": "catstats <jiang548@purdue.edu>",
    "committer": "catstats <jiang548@purdue.edu>",
    "message": "Match XGBoost split threshold semantics\n",
    "time": 1778681444
  },
  "_maintainer": {
    "name": "Zhongli Jiang",
    "email": "zhongli.jiang.stats@gmail.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.14",
      "role": "Imports"
    },
    {
      "package": "xgboost",
      "version": ">= 3.1.3.1",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "lightgbm",
      "role": "Imports"
    },
    {
      "package": "viridisLite",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "progress",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    }
  ],
  "_owner": "catstats",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-36",
      "n": 7
    },
    {
      "week": "2026-04",
      "n": 24
    },
    {
      "week": "2026-05",
      "n": 14
    },
    {
      "week": "2026-06",
      "n": 6
    },
    {
      "week": "2026-07",
      "n": 9
    },
    {
      "week": "2026-08",
      "n": 4
    },
    {
      "week": "2026-09",
      "n": 16
    },
    {
      "week": "2026-10",
      "n": 22
    },
    {
      "week": "2026-11",
      "n": 3
    },
    {
      "week": "2026-12",
      "n": 3
    },
    {
      "week": "2026-13",
      "n": 3
    },
    {
      "week": "2026-18",
      "n": 8
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-20",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "catstats",
      "count": 133,
      "uuid": 16614051
    },
    {
      "user": "copilot",
      "count": 50,
      "uuid": 198982749
    },
    {
      "user": "onestig",
      "count": 3,
      "uuid": 23112682
    }
  ],
  "_userbio": {
    "uuid": 16614051,
    "type": "user",
    "name": "catstats",
    "description": "A cat with a PhD in Statistics. Occasionally do some human programming and statistics."
  },
  "_downloads": {
    "count": 471,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/qshap"
  },
  "_devurl": "https://github.com/catstats/q-shap_r",
  "_searchresults": 2,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/qshap.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/catstats/q-shap_r",
  "_realowner": "catstats",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2026-03-16"
    },
    {
      "version": "1.0.1",
      "date": "2026-05-04"
    }
  ],
  "_exports": [
    "gazer",
    "loss",
    "qshap",
    "qshap_result",
    "rsq"
  ],
  "_help": [
    {
      "page": "as.data.frame.qshap_result",
      "title": "Coercion method to data.frame for qshap_result",
      "topics": [
        "as.data.frame.qshap_result"
      ]
    },
    {
      "page": "gazer",
      "title": "Create a QSHAP Tree Explainer",
      "topics": [
        "gazer"
      ]
    },
    {
      "page": "loss",
      "title": "Alias for qshap_loss",
      "topics": [
        "loss"
      ]
    },
    {
      "page": "plot.qshap_rsq",
      "title": "Plot method for qshap_rsq objects",
      "topics": [
        "plot.qshap_rsq"
      ]
    },
    {
      "page": "print.qshap_result",
      "title": "Print method for qshap_result",
      "topics": [
        "print.qshap_result"
      ]
    },
    {
      "page": "print.qshap_tree_explainer",
      "title": "Print method for qshap_tree_explainer",
      "topics": [
        "print.qshap_tree_explainer"
      ]
    },
    {
      "page": "print.simple_tree",
      "title": "Print method for simple_tree",
      "topics": [
        "print.simple_tree"
      ]
    },
    {
      "page": "print.tree_summary",
      "title": "Print method for tree_summary",
      "topics": [
        "print.tree_summary"
      ]
    },
    {
      "page": "qshap",
      "title": "Alias for rsq",
      "topics": [
        "qshap"
      ]
    },
    {
      "page": "qshap_result",
      "title": "User-friendly constructor for qshap_result",
      "topics": [
        "qshap_result"
      ]
    },
    {
      "page": "rsq",
      "title": "Calculate Feature-Specific R-Squared Values",
      "topics": [
        "rsq"
      ]
    },
    {
      "page": "summary.qshap_result",
      "title": "Summary method for qshap_result",
      "topics": [
        "summary.qshap_result"
      ]
    },
    {
      "page": "summary.qshap_rsq",
      "title": "Summary method for qshap_rsq objects",
      "topics": [
        "summary.qshap_rsq"
      ]
    },
    {
      "page": "summary.qshap_tree_explainer",
      "title": "Summary method for qshap_tree_explainer",
      "topics": [
        "summary.qshap_tree_explainer"
      ]
    }
  ],
  "_readme": "https://github.com/catstats/q-shap_r/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "crayon",
    "data.table",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "hms",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "lightgbm",
    "Matrix",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr",
    "xgboost"
  ],
  "_sysdeps": [
    {
      "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"
    }
  ],
  "_score": 4.447158031342219,
  "_indexed": true,
  "_nocasepkg": "qshap",
  "_universes": [
    "catstats"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-13T14:40:48.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "a346a37a875e6e245d25adc9b2bab55d8da0f7a2998ffa033c21bf6d37339ae9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-13T14:41:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "3c14ce8e30d3a6a1f3be7d32a5570b5b202c73fd2073c5ac7564184e95dd131e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-13T14:40:29.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "26c547f384accb80870a2bfbf30af16aad96a884b753de5af9cd14b22267fcc5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-13T14:40:30.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "c2bacc453a0978d5a1628f749689cfb68220f445a7a8b5590c2b246823c40235",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-13T14:39:51.000Z",
      "arch": "aarch64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "8f8e53dd1f313829e72f611a48e9c6e8089929a5ae865b639a169582759f57ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-13T14:42:07.000Z",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "d0ff0ad2891cfb760e94af27f4073f017213b0357ac0ebcde09827ab7a1ef79e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-13T14:42:53.000Z",
      "arch": "aarch64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "cb1d5849063ba8fac11131f4e75bb5e60ceea279d98103a1c489e6b9f678b20d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-13T14:41:45.000Z",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "526ae0b19268fa4ae9d419c1211f87ba3a663220a2ec68fd3fa3e92a2765b87c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-13T14:39:46.000Z",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "48528a811635ccc17f4dc25b9f63724759cafff0c039e915af07b9d65b084d1a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-13T14:39:28.000Z",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "b3e1d59c39261c019540e48e4adf484b11b2ddbac1ca02a7b1772d975aeb63b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-13T14:39:33.000Z",
      "arch": "x86_64",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "fbc78dfa7751afc13c538c341ecb5e02f91e9272f3b0596d07cf96269fc7512e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-05-22T09:36:31.000Z",
      "arch": "emscripten",
      "commit": "0d56323cdb958aae2092f35ca511f9b14482cca1",
      "fileid": "6f13f5d4c17aae2a525afb4569baa1c3bf63fbbdb8983ebdc4c901c5a7cf7570",
      "status": "success",
      "buildurl": "https://github.com/r-universe/catstats/actions/runs/25805941327"
    }
  ]
}