{
  "_id": "6aea74081e2c7b3a4f533e0a",
  "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",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-03 23:50:47 UTC",
    "User": "root"
  },
  "Author": "Austin Carter [aut, cre]",
  "Maintainer": "Austin Carter <aucarter@uw.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-03 21:17:54 UTC",
  "RemoteUrl": "https://github.com/cran/shapleydecomp",
  "RemoteRef": "HEAD",
  "RemoteSha": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
  "_user": "cran",
  "_type": "src",
  "_file": "shapleydecomp_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/6de8630dc527f3aa029bde3f13edd2072994a55e223bb74e5b2c4d58701f55e8",
  "_filesize": 287141,
  "_sha256": "6de8630dc527f3aa029bde3f13edd2072994a55e223bb74e5b2c4d58701f55e8",
  "_expires": "2027-02-11T23:53:43.000Z",
  "_created": "2026-11-03T23:50:47.000Z",
  "_published": "2026-11-03T23:53:44.977Z",
  "_upstream": "https://github.com/cran/shapleydecomp",
  "_status": "success",
  "_maintainer": {
    "name": "Austin Carter",
    "email": "aucarter@uw.edu",
    "login": "aucarter",
    "description": "",
    "uuid": 24721266
  },
  "_jobs": [
    {
      "job": 126286767149,
      "time": 133,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13282905490"
    },
    {
      "job": 126286767020,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13281273666"
    },
    {
      "job": 126285575972,
      "time": 165,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13282496197"
    },
    {
      "job": 126286766914,
      "time": 94,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13282486583"
    },
    {
      "job": 126286766854,
      "time": 68,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13282086157"
    },
    {
      "job": 126286766903,
      "time": 69,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13281592122"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/41741960318",
  "_commit": {
    "id": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
    "author": "Austin Carter <aucarter@uw.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1793740674
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-11-03"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "aucarter",
      "count": 1,
      "uuid": 24721266
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 635,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_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"
  ],
  "_cranurl": false,
  "_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/cran/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-11-03 21:17:54",
      "modified": "2026-11-03 21:17:54",
      "commits": 1
    },
    {
      "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-11-03 21:17:54",
      "modified": "2026-11-03 21:17:54",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "shapleydecomp",
  "_universes": [
    "cran",
    "aucarter"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-11-03T23:53:00.000Z",
      "distro": "resolute",
      "commit": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
      "fileid": "https://r2.ropensci.org/75088cccbaa2cd289269002b4bc61b593f42ed0d710a0560f33467e8fed03a77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41741960318"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-11-03T23:53:08.000Z",
      "distro": "resolute",
      "commit": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
      "fileid": "https://r2.ropensci.org/0aba03bd43e775cd9aafead46a850f64078ae319507cf2794ac088ab2c19c129",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41741960318"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-11-03T23:52:38.000Z",
      "commit": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
      "fileid": "https://r2.ropensci.org/4fc6ad48a28ff5dc3d8d5bfc62e850f401e985c1ca3673c7be0986e37e7a36f1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41741960318"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-11-03T23:51:50.000Z",
      "commit": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
      "fileid": "https://r2.ropensci.org/9cfb5c27d88c3faca4c38f8823187f55144ac21421f46b7cb9c1110b2b53d2d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41741960318"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-11-03T23:51:53.000Z",
      "commit": "62c08cfdd3ea361f03e2bfbb4c0e2a2f3a7f88ad",
      "fileid": "https://r2.ropensci.org/164d5cd4be07b5e6bd055dfef68c930c93de5e1fb1b5f0a0aba05adcf8ee695b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41741960318"
    }
  ]
}