{
  "_id": "6aeb31009ceaa78f2009f49b",
  "Package": "shapleydecomp",
  "Title": "Shapley Value Decomposition for Discrete-Time Simulation Models",
  "Version": "1.0.0",
  "Authors@R": "person(\"Austin\", \"Carter\", , \"aucarter@uw.edu\", role = c(\"aut\", \"cre\"))",
  "Description": "Attributes changes in the outcomes of a discrete-time\nsimulation model to its input factors using Shapley values\n(Shapley 1953) <doi:10.1515/9781400881970-018>, which for\nbinary factors coincide with the symmetric standardization of\nDas Gupta (1993)\n<https://www2.census.gov/library/publications/1993/demographics/p23-186.pdf>.\nAny calibrated model can be decomposed by implementing four S3\nmethods that run the model, summarize its output, and construct\ncounterfactual inputs. Counterfactuals either remove a factor\nentirely or hold it at its value in a baseline year, and a\nsequential decomposition attributes each year's policy\nconditional on the past.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/aucarter/shapleydecomp,\nhttps://aucarter.github.io/shapleydecomp/",
  "BugReports": "https://github.com/aucarter/shapleydecomp/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Repository": "https://aucarter.r-universe.dev",
  "Date/Publication": "2026-11-03 17:25:50 UTC",
  "RemoteUrl": "https://github.com/aucarter/shapleydecomp",
  "RemoteRef": "HEAD",
  "RemoteSha": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-04 13:15:58 UTC",
    "User": "root"
  },
  "Author": "Austin Carter [aut, cre]",
  "Maintainer": "Austin Carter <aucarter@uw.edu>",
  "_user": "aucarter",
  "_type": "src",
  "_file": "shapleydecomp_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/e2203a9722963411826c6fa60a1b0a7628f82988d4113af7a64149204a070845",
  "_filesize": 286061,
  "_sha256": "e2203a9722963411826c6fa60a1b0a7628f82988d4113af7a64149204a070845",
  "_expires": "2027-02-12T13:19:59.000Z",
  "_created": "2026-11-04T13:15:58.000Z",
  "_published": "2026-11-04T13:20:00.883Z",
  "_upstream": "https://github.com/aucarter/shapleydecomp",
  "_status": "success",
  "_maintainer": {
    "name": "Austin Carter",
    "email": "aucarter@uw.edu",
    "login": "aucarter",
    "description": "",
    "uuid": 24721266
  },
  "_jobs": [
    {
      "job": 126596903834,
      "time": 110,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13326706123"
    },
    {
      "job": 126596903920,
      "time": 102,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13326741004"
    },
    {
      "job": 126596903814,
      "time": 204,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13325467941"
    },
    {
      "job": 126596903690,
      "time": 195,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13326761292"
    },
    {
      "job": 126595411454,
      "time": 168,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13327190616"
    },
    {
      "job": 126596903548,
      "time": 84,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13327945722"
    },
    {
      "job": 126596903960,
      "time": 69,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13327230886"
    },
    {
      "job": 126596903781,
      "time": 66,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13326711006"
    },
    {
      "job": 126596903884,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13327355877"
    }
  ],
  "_buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884",
  "_commit": {
    "id": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
    "author": "Austin Carter <aucarter@uw.edu>",
    "committer": "Austin Carter <aucarter@uw.edu>",
    "message": "Released on CRAN: install instructions, CRAN badge\n\n1.0.0 was published on CRAN on 2026-11-03. Tag v1.0.0 marks the\nsubmitted commit (9bcc341); CRAN-SUBMISSION is no longer needed.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n",
    "time": 1793726750
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "aucarter",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-29",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 3
    },
    {
      "week": "2026-42",
      "n": 10
    },
    {
      "week": "2026-43",
      "n": 4
    },
    {
      "week": "2026-44",
      "n": 1
    },
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2026-10-21"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "aucarter",
      "count": 23,
      "uuid": 24721266
    }
  ],
  "_userbio": {
    "uuid": 24721266,
    "type": "user",
    "name": "Austin Carter",
    "followers": 13
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/shapleydecomp"
  },
  "_devurl": "https://github.com/aucarter/shapleydecomp",
  "_pkgdown": "https://aucarter.github.io/shapleydecomp/",
  "_searchresults": 4,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/shapleydecomp.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/aucarter/shapleydecomp",
  "_realowner": "aucarter",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-11-03"
    }
  ],
  "_exports": [
    "build_counterfactual",
    "CF_CHANGE_SINCE",
    "CF_TOTAL_IMPACT",
    "decomp_algebra",
    "decomp_pair",
    "get_baseline_value",
    "get_warm_start_state",
    "make_run_table",
    "prepare_decomp",
    "run_decomp",
    "run_from_warm_start",
    "run_simulation",
    "sequential_totals",
    "shapley_decompose",
    "summarize_results",
    "supports_warm_start",
    "validate_model_interface"
  ],
  "_help": [
    {
      "page": "build_counterfactual",
      "title": "Construct counterfactual parameters for a factor",
      "concept": [
        "model interface"
      ],
      "topics": [
        "build_counterfactual"
      ]
    },
    {
      "page": "cf_types",
      "title": "Counterfactual type constants",
      "topics": [
        "CF_CHANGE_SINCE",
        "CF_TOTAL_IMPACT",
        "cf_types"
      ]
    },
    {
      "page": "decomp_algebra",
      "title": "Decompose all summary variables for a single group",
      "topics": [
        "decomp_algebra"
      ]
    },
    {
      "page": "decomp_pair",
      "title": "Decompose a single summary variable using Shapley value weights",
      "topics": [
        "decomp_pair"
      ]
    },
    {
      "page": "get_baseline_value",
      "title": "Get the baseline value for a factor",
      "concept": [
        "model interface"
      ],
      "topics": [
        "get_baseline_value"
      ]
    },
    {
      "page": "make_run_table",
      "title": "Generate the factorial run table for decomposition",
      "topics": [
        "make_run_table"
      ]
    },
    {
      "page": "prepare_decomp",
      "title": "Prepare the model for decomposition",
      "concept": [
        "model interface"
      ],
      "topics": [
        "prepare_decomp"
      ]
    },
    {
      "page": "run_decomp",
      "title": "Run decomposition across groups and decomp years",
      "topics": [
        "run_decomp"
      ]
    },
    {
      "page": "run_simulation",
      "title": "Run a simulation with the given parameters",
      "concept": [
        "model interface"
      ],
      "topics": [
        "run_simulation"
      ]
    },
    {
      "page": "sequential_totals",
      "title": "Total impact per factor at every year from a sequential decomposition",
      "topics": [
        "sequential_totals"
      ]
    },
    {
      "page": "shapley_decompose",
      "title": "Run a full decomposition analysis",
      "topics": [
        "shapley_decompose"
      ]
    },
    {
      "page": "summarize_results",
      "title": "Summarize simulation output into a data.table",
      "concept": [
        "model interface"
      ],
      "topics": [
        "summarize_results"
      ]
    },
    {
      "page": "validate_model_interface",
      "title": "Validate that a model implements the shapleydecomp interface",
      "concept": [
        "model interface"
      ],
      "topics": [
        "validate_model_interface"
      ]
    },
    {
      "page": "warm_start",
      "title": "Warm starts",
      "concept": [
        "model interface"
      ],
      "topics": [
        "get_warm_start_state",
        "run_from_warm_start",
        "supports_warm_start",
        "warm_start"
      ]
    }
  ],
  "_readme": "https://github.com/aucarter/shapleydecomp/raw/HEAD/README.md",
  "_rundeps": [
    "data.table"
  ],
  "_vignettes": [
    {
      "source": "shapleydecomp.Rmd",
      "filename": "shapleydecomp.html",
      "title": "Get started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. A model",
        "2. The interface",
        "Registering the methods",
        "3. Validate",
        "4. Decompose",
        "5. Two questions, two counterfactuals",
        "6. Going further"
      ],
      "created": "2026-10-13 21:29:27",
      "modified": "2026-10-14 23:17:28",
      "commits": 2
    },
    {
      "source": "methods.Rmd",
      "filename": "methods.html",
      "title": "Methods",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "Factorial design",
        "Shapley values",
        "Das Gupta's standardization is the same thing",
        "Counterfactual types",
        "Counterfactuals in between on and off",
        "Decomposing over time: sequential Shapley",
        "Runs that are not simulated",
        "References"
      ],
      "created": "2026-10-13 20:48:08",
      "modified": "2026-10-21 23:17:09",
      "commits": 6
    }
  ],
  "_score": 5.204119982655925,
  "_indexed": true,
  "_nocasepkg": "shapleydecomp",
  "_universes": [
    "aucarter"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-11-04T13:17:46.000Z",
      "distro": "resolute",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/4210227935682bba16058c498003b224189709e4fa97a23f56462db9ceb5347b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-11-04T13:17:43.000Z",
      "distro": "resolute",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/9bc72ee679e1a089484c6f3be54b1c0eddff287bbd600fd750886127fb90edc8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-11-04T13:18:45.000Z",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/6713d607f564501aaf9739bc60ff27edce286288298b0855729b626399f0eb89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-11-04T13:18:21.000Z",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/a35982e1d5f59e669b0dc912627d67ea984b2cce26fd85b7b0adb536cd179d73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-11-04T13:17:40.000Z",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/499c1df164b5390ac2e93fa7d1312c8dbacbf44814a744111c59e1fb97098547",
      "status": "success",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-11-04T13:17:02.000Z",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/bbfa2e7a05aea36543f034adfddbd5d3c01781f878d208f9037a9953145513a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-11-04T13:16:59.000Z",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/18f0b350e0b4a803004ec20259bfd99ff79fdea1a8d1f3ba22da1d14f729d972",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-11-04T13:17:03.000Z",
      "commit": "90a4659e5e39cf5f5e1f3293912abf2ab03d68c1",
      "fileid": "https://r2.ropensci.org/957eacde949bc3c33fce7e1c9b0fcf5dc42660f9036f39158207254922c201ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/aucarter/actions/runs/41836095884"
    }
  ]
}