{
  "_id": "6ad1e440a6a61792ed76bdc8",
  "Package": "bartXViz",
  "Title": "Visualization of BART and BARP using SHAP",
  "Version": "1.0.11",
  "Date": "2026-01-26",
  "Authors@R": "c( person(\"Dong-eun\", \"Lee\", , \"ldongeun.leel@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Eun-Kyung\", \"Lee\",, role = \"aut\"))",
  "Description": "Complex machine learning models are often difficult to\ninterpret. Shapley values serve as a powerful tool to\nunderstand and explain why a model makes a particular\nprediction. This package computes variable contributions using\npermutation-based Shapley values for Bayesian Additive\nRegression Trees (BART) and its extension with\nPost-Stratification (BARP). The permutation-based SHAP method\nproposed by Strumbel and Kononenko (2014)\n<doi:10.1007/s10115-013-0679-x> is grounded in data obtained\nvia MCMC sampling. Similar to the BART model introduced by\nChipman, George, and McCulloch (2010) <doi:10.1214/09-AOAS285>,\nthis package leverages Bayesian posterior samples generated\nduring model estimation, allowing variable contributions to be\ncomputed without requiring additional sampling. The BART model\nis designed to work with the following R packages: 'BART'\n<doi:10.18637/jss.v097.i01>, 'bartMachine'\n<doi:10.18637/jss.v070.i04>, and 'dbarts'\n<https://CRAN.R-project.org/package=dbarts>. For XGBoost and\nbaseline adjustments, the approach by Lundberg et al. (2020)\n<doi:10.1038/s42256-019-0138-9> is also considered. The BARP\nmodel proposed by Bisbee (2019) <doi:10.1017/S0003055419000480>\nwas implemented with reference to\n<https://github.com/jbisbee1/BARP> and is designed to work with\nmodified functions based on that implementation. BARP extends\npost-stratification by computing variable contributions within\neach stratum defined by stratifying variables. The resulting\nShapley values are visualized through both global and local\nexplanation methods.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "URL": "https://github.com/ldongeunl/bartXViz",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-16 08:40:46 UTC",
    "User": "root"
  },
  "Author": "Dong-eun Lee [aut, cre], Eun-Kyung Lee [aut]",
  "Maintainer": "Dong-eun Lee <ldongeun.leel@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-01-26 13:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/bartXViz",
  "RemoteRef": "HEAD",
  "RemoteSha": "138a8831126390fe0458da1aadce11716e62452c",
  "_user": "cran",
  "_type": "src",
  "_file": "bartXViz_1.0.11.tar.gz",
  "_fileid": "https://r2.ropensci.org/06b63c16ee509dc957ead2ec430b82f7d30d7d4ba061cc8040155e586f0c5b40",
  "_filesize": 399251,
  "_sha256": "06b63c16ee509dc957ead2ec430b82f7d30d7d4ba061cc8040155e586f0c5b40",
  "_expires": "2027-01-24T08:45:50.000Z",
  "_created": "2026-10-16T08:40:46.000Z",
  "_published": "2026-10-16T08:45:52.318Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116888983142,
      "time": 172,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12034299626"
    },
    {
      "job": 116888982877,
      "time": 181,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12035680316"
    },
    {
      "job": 116888983156,
      "time": 168,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12034679223"
    },
    {
      "job": 116888982956,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12035685231"
    },
    {
      "job": 116887659964,
      "time": 214,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12035251045"
    },
    {
      "job": 116888983160,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12035151878"
    },
    {
      "job": 116888982977,
      "time": 245,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12034784177"
    },
    {
      "job": 116888982853,
      "time": 208,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12035441352"
    },
    {
      "job": 116888982997,
      "time": 227,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12035117001"
    },
    {
      "job": 116888983061,
      "time": 165,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12035630061"
    }
  ],
  "_upstream": "https://github.com/cran/bartXViz",
  "_commit": {
    "id": "138a8831126390fe0458da1aadce11716e62452c",
    "author": "Dong-eun Lee <ldongeun.leel@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.11\n",
    "time": 1769433002
  },
  "_maintainer": {
    "name": "Dong-eun Lee",
    "email": "ldongeun.leel@gmail.com"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "SuperLearner",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "bartMachine",
      "role": "Imports"
    },
    {
      "package": "BART",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggforce",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "ggfittext",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "gggenes",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "abind",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "dbarts",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "missForest",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-51",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.9",
      "date": "2025-12-21"
    },
    {
      "name": "1.0.11",
      "date": "2026-01-26"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 631,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 355,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bartXViz"
  },
  "_devurl": "https://github.com/ldongeunl/bartxviz",
  "_searchresults": 0,
  "_topics": [
    "cpp",
    "openjdk"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bartXViz.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/ldongeunl/bartxviz",
  "_realowner": "ldongeunl",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.3",
      "date": "2025-04-28"
    },
    {
      "version": "1.0.5",
      "date": "2025-06-24"
    },
    {
      "version": "1.0.6",
      "date": "2025-07-19"
    },
    {
      "version": "1.0.8",
      "date": "2025-08-01"
    },
    {
      "version": "1.0.9",
      "date": "2025-12-21"
    },
    {
      "version": "1.0.11",
      "date": "2026-01-26"
    }
  ],
  "_exports": [
    "barps",
    "decision_plot",
    "Explain",
    "Explain_stats",
    "one_hot",
    "waterfall_plot"
  ],
  "_datasets": [
    {
      "name": "cces_30_df",
      "title": "Survey Data on Public Opinion about Abortion Coverage in Insurance Plans(2018)",
      "object": "cces_30_df",
      "file": "cces_30_df.RData",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "abortion",
        "state",
        "eth",
        "gender",
        "age",
        "educ"
      ],
      "rows": 49095,
      "table": true,
      "tojson": true
    },
    {
      "name": "census06",
      "title": "Census-Based Population Proportions for Covariate Bins (2006)",
      "object": "gaymar",
      "file": "gaymar.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "stateid",
        "region",
        "age",
        "gXr",
        "educ",
        "pvote",
        "religcon",
        "libcon",
        "n"
      ],
      "rows": 2940,
      "table": true,
      "tojson": true
    },
    {
      "name": "poststrat_30",
      "title": "Post-Stratification Table of 2014-2018 American Community Survey (ACS)",
      "object": "poststrat_30",
      "file": "poststrat_30.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "state",
        "eth",
        "gender",
        "age",
        "educ",
        "n"
      ],
      "rows": 7200,
      "table": true,
      "tojson": true
    },
    {
      "name": "svy",
      "title": "Survey Data on Support for Gay Marriage (2006)",
      "object": "gaymar",
      "file": "gaymar.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "state",
        "stateid",
        "region",
        "age",
        "gXr",
        "educ",
        "supp_gaymar",
        "pvote",
        "religcon",
        "libcon"
      ],
      "rows": 5000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "barps",
      "title": "Bayesian Additive Regression Trees with Post-Stratification (BARP)",
      "topics": [
        "barps"
      ]
    },
    {
      "page": "cces_30_df",
      "title": "Survey Data on Public Opinion about Abortion Coverage in Insurance Plans(2018)",
      "topics": [
        "cces_30_df"
      ]
    },
    {
      "page": "census06",
      "title": "Census-Based Population Proportions for Covariate Bins (2006)",
      "topics": [
        "census06"
      ]
    },
    {
      "page": "decision_plot",
      "title": "Decision Plot",
      "topics": [
        "decision_plot"
      ]
    },
    {
      "page": "Explain.default",
      "title": "Approximate Shapley Values",
      "topics": [
        "Explain",
        "Explain.default",
        "Explain.lgb.Booster",
        "Explain.lm",
        "Explain.xgb.Booster"
      ]
    },
    {
      "page": "Explain_stats",
      "title": "Numerical summary of Shapley values from an Explain object",
      "topics": [
        "Explain_stats",
        "Explain_stats.default",
        "Explain_stats.Explainbarp"
      ]
    },
    {
      "page": "Explain.barp",
      "title": "Approximate Shapley Values Computed from the BARP Model",
      "topics": [
        "Explain.barp"
      ]
    },
    {
      "page": "Explain.bart",
      "title": "Approximate Shapley Values Computed from a BART Model Fitted using 'bart'",
      "topics": [
        "Explain.bart"
      ]
    },
    {
      "page": "Explain.bartMachine",
      "title": "Approximate Shapley Values Computed from a BART Model Fitted using 'bartMachine'",
      "topics": [
        "Explain.bartMachine"
      ]
    },
    {
      "page": "Explain.wbart",
      "title": "Approximate Shapley Values Computed from a BART Model Fitted using 'wbart' or 'gbart'",
      "topics": [
        "Explain.wbart"
      ]
    },
    {
      "page": "one_hot",
      "title": "One Hot Encode",
      "topics": [
        "one_hot"
      ]
    },
    {
      "page": "plot.Explain",
      "title": "A Function for Visualizing the Shapley Values",
      "topics": [
        "plot.Explain"
      ]
    },
    {
      "page": "plot.Explainbarp",
      "title": "Visualization of Shapley Values from the BARP Model",
      "topics": [
        "plot.Explainbarp"
      ]
    },
    {
      "page": "plot.ExplainBART",
      "title": "A Function for Visualizing the Shapley Values of BART Models",
      "topics": [
        "plot",
        "plot.ExplainBART"
      ]
    },
    {
      "page": "plot.ExplainbartMachine",
      "title": "A Function for Visualizing the Shapley Values of BART Models",
      "topics": [
        "plot.ExplainbartMachine"
      ]
    },
    {
      "page": "poststrat_30",
      "title": "Post-Stratification Table of 2014-2018 American Community Survey (ACS)",
      "topics": [
        "poststrat_30"
      ]
    },
    {
      "page": "svy",
      "title": "Survey Data on Support for Gay Marriage (2006)",
      "topics": [
        "svy"
      ]
    },
    {
      "page": "waterfall_plot",
      "title": "Waterfall Plot",
      "topics": [
        "waterfall_plot"
      ]
    }
  ],
  "_readme": "https://github.com/cran/bartXViz/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BART",
    "bartMachine",
    "bartMachineJARs",
    "base64enc",
    "bitops",
    "boot",
    "broom",
    "car",
    "carData",
    "caTools",
    "checkmate",
    "cli",
    "codetools",
    "colorspace",
    "commonmark",
    "corrplot",
    "cowplot",
    "cpp11",
    "curl",
    "cvAUC",
    "data.table",
    "dbarts",
    "Deriv",
    "digest",
    "doBy",
    "doRNG",
    "dplyr",
    "farver",
    "forcats",
    "foreach",
    "forecast",
    "Formula",
    "fracdiff",
    "gam",
    "generics",
    "ggfittext",
    "ggforce",
    "gggenes",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gplots",
    "gridExtra",
    "gridtext",
    "gtable",
    "gtools",
    "isoband",
    "iterators",
    "itertools",
    "jpeg",
    "jsonlite",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "litedown",
    "lme4",
    "lmtest",
    "magrittr",
    "markdown",
    "MASS",
    "Matrix",
    "MatrixModels",
    "matrixStats",
    "mgcv",
    "minqa",
    "missForest",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "nnls",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plyr",
    "png",
    "polyclip",
    "polynom",
    "purrr",
    "quantreg",
    "R6",
    "randomForest",
    "ranger",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "reshape2",
    "rJava",
    "rlang",
    "rngtools",
    "ROCR",
    "rstatix",
    "S7",
    "scales",
    "shades",
    "SparseM",
    "stringi",
    "stringr",
    "SuperLearner",
    "survival",
    "systemfonts",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tweenr",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "zoo"
  ],
  "_sysdeps": [
    {
      "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": "libjvm",
      "package": "openjdk-25-jre-headless",
      "headers": "openjdk-25-jre-headless",
      "source": "openjdk",
      "version": "25.0.4.1+1-1~26.04.4",
      "name": "openjdk",
      "homepage": "https://openjdk.java.net/",
      "description": "OpenJDK Java runtime, using Hotspot JIT (headless)"
    }
  ],
  "_score": 2,
  "_indexed": false,
  "_nocasepkg": "bartxviz",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://ldongeunl.r-universe.dev/bartXViz",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.11",
      "date": "2026-10-16T08:43:21.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/8e742792b6d1e7d341df46d9843c921f3c194502b807c8f35c2f4c58607b4fe8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.11",
      "date": "2026-10-16T08:43:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/efc77c1e9cbe00b2b6346e7208285b3891d75a67b3267d65a942348aa197e76a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.11",
      "date": "2026-10-16T08:43:21.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/7ff639632572323571246af7ab6701e30634b03e60be6a0a97b9c3dcbc791334",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.11",
      "date": "2026-10-16T08:43:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/5384a7e86af9a9f496e6dffa7a355fad3285ffb663376787d2965f97efe1a50f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.11",
      "date": "2026-10-16T08:44:12.000Z",
      "arch": "emscripten",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/afd59c3c73259a45d10fe1f4ed26c6754c5b892ed47f2866b32a5a7072029310",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.11",
      "date": "2026-10-16T08:44:08.000Z",
      "arch": "aarch64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/35b6b33ec63f220c641bbb0d36a22c4581c1ba49ec670cc36be8f601e180f0b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.11",
      "date": "2026-10-16T08:42:29.000Z",
      "arch": "x86_64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/b8107662581461425441af1c420165dbf891455677d2ea241ecdedca56f08452",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.11",
      "date": "2026-10-16T08:43:51.000Z",
      "arch": "aarch64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/4a7551207e332b86434c84e9e0604a230b36a18d89338900f52fe9366a8f5538",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.11",
      "date": "2026-10-16T08:42:28.000Z",
      "arch": "x86_64",
      "commit": "138a8831126390fe0458da1aadce11716e62452c",
      "fileid": "https://r2.ropensci.org/467ff132c5facb5542e31ae2092bebd604f92d6413a97afe10f326d2946b3984",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38874918997"
    }
  ]
}