{
  "_id": "6a1f1339b401979e7341def1",
  "Package": "clarify",
  "Type": "Package",
  "Title": "Simulation-Based Inference for Regression Models",
  "Version": "0.2.2",
  "Authors@R": "c(\nperson(\"Noah\", \"Greifer\", role = c(\"aut\", \"cre\"),\nemail = \"ngreifer@iq.harvard.edu\",\ncomment = c(ORCID=\"0000-0003-3067-7154\")),\nperson(\"Steven\", \"Worthington\", role = c(\"aut\"),\nemail = \"sworthington@iq.harvard.edu\",\ncomment = c(ORCID=\"0000-0001-9550-5797\")),\nperson(\"Stefano\", \"Iacus\", role = c(\"aut\"),\nemail = \"siacus@iq.harvard.edu\",\ncomment = c(ORCID=\"0000-0002-4884-0047\")),\nperson(\"Gary\", \"King\", role = c(\"aut\"),\nemail = \"king@harvard.edu\",\ncomment = c(ORCID=\"0000-0002-5327-7631\"))\n)",
  "Description": "Performs simulation-based inference as an alternative to\nthe delta method for obtaining valid confidence intervals and\np-values for regression post-estimation quantities, such as\naverage marginal effects and predictions at representative\nvalues. This framework for simulation-based inference is\nespecially useful when the resulting quantity is not normally\ndistributed and the delta method approximation fails. The\nmethodology is described in Greifer, et al. (2025)\n<doi:10.32614/RJ-2024-015>. 'clarify' is meant to replace some\nof the functionality of the archived package 'Zelig'; see the\nvignette \"Translating Zelig to clarify\" for replicating this\nfunctionality.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://github.com/iqss/clarify, https://iqss.github.io/clarify/",
  "BugReports": "https://github.com/iqss/clarify/issues",
  "VignetteBuilder": "knitr",
  "Repository": "https://iqss.r-universe.dev",
  "Date/Publication": "2025-09-19 16:57:28 UTC",
  "RemoteUrl": "https://github.com/iqss/clarify",
  "RemoteRef": "HEAD",
  "RemoteSha": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 07:26:31 UTC",
    "User": "root"
  },
  "Author": "Noah Greifer [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-3067-7154>),\nSteven Worthington [aut] (ORCID:\n<https://orcid.org/0000-0001-9550-5797>),\nStefano Iacus [aut] (ORCID: <https://orcid.org/0000-0002-4884-0047>),\nGary King [aut] (ORCID: <https://orcid.org/0000-0002-5327-7631>)",
  "Maintainer": "Noah Greifer <ngreifer@iq.harvard.edu>",
  "MD5sum": "b48998a4c69ec4732028577879876879",
  "_user": "iqss",
  "_type": "src",
  "_file": "clarify_0.2.2.tar.gz",
  "_fileid": "82a6aa783157445c6ede589fd5d85bef8273d7e0b33e319d1bec5accc3334b11",
  "_filesize": 2452086,
  "_sha256": "82a6aa783157445c6ede589fd5d85bef8273d7e0b33e319d1bec5accc3334b11",
  "_created": "2026-05-17T07:26:31.000Z",
  "_published": "2026-06-02T17:30:33.017Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79132209612,
      "time": 228,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040435238"
    },
    {
      "job": 79132209850,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040433177"
    },
    {
      "job": 79132210097,
      "time": 200,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040427802"
    },
    {
      "job": 79132210230,
      "time": 180,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040428031"
    },
    {
      "job": 79132209160,
      "time": 360,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040410121"
    },
    {
      "job": 79132208954,
      "time": 140,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7365146032"
    },
    {
      "job": 79132209876,
      "time": 178,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040430386"
    },
    {
      "job": 79132210193,
      "time": 144,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040426191"
    },
    {
      "job": 79132210560,
      "time": 182,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040430187"
    }
  ],
  "_buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/iqss/clarify",
  "_commit": {
    "id": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
    "author": "Noah Greifer <ngreifer@iq.harvard.edu>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #25 from ngreifer/main\n\nSite updates",
    "time": 1758301048
  },
  "_maintainer": {
    "name": "Noah Greifer",
    "email": "ngreifer@iq.harvard.edu",
    "login": "ngreifer",
    "twitter": "@noah_greifer",
    "description": "Data Science Specialist at Harvard University Institute for Quantitative Social Science (IQSS)",
    "uuid": 20465600,
    "orcid": "0000-0003-3067-7154"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.0",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "version": ">= 1.7-4",
      "role": "Imports"
    },
    {
      "package": "chk",
      "version": ">= 0.10.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.6",
      "role": "Imports"
    },
    {
      "package": "insight",
      "version": ">= 1.4.2",
      "role": "Imports"
    },
    {
      "package": "marginaleffects",
      "version": ">= 0.30.0",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "MatchIt",
      "version": ">= 4.0.0",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "Amelia",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "betareg",
      "role": "Suggests"
    },
    {
      "package": "survey",
      "role": "Suggests"
    },
    {
      "package": "estimatr",
      "role": "Suggests"
    },
    {
      "package": "fixest",
      "role": "Suggests"
    },
    {
      "package": "logistf",
      "role": "Suggests"
    },
    {
      "package": "geepack",
      "role": "Suggests"
    },
    {
      "package": "rms",
      "role": "Suggests"
    },
    {
      "package": "robustbase",
      "role": "Suggests"
    },
    {
      "package": "robust",
      "role": "Suggests"
    },
    {
      "package": "AER",
      "role": "Suggests"
    },
    {
      "package": "ivreg",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "version": ">= 1.3.2",
      "role": "Suggests"
    }
  ],
  "_owner": "iqss",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-38",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 26,
  "_contributors": [
    {
      "user": "ngreifer",
      "count": 143,
      "uuid": 20465600
    },
    {
      "user": "vincentarelbundock",
      "count": 1,
      "uuid": 987057
    }
  ],
  "_userbio": {
    "uuid": 675237,
    "type": "organization",
    "name": "Institute for Quantitative Social Science"
  },
  "_downloads": {
    "count": 4061,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/clarify"
  },
  "_devurl": "https://github.com/iqss/clarify",
  "_pkgdown": "https://iqss.github.io/clarify/",
  "_searchresults": 44,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/clarify.html",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/iqss/clarify",
  "_realowner": "iqss",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2023-01-25"
    },
    {
      "version": "0.1.1",
      "date": "2023-02-03"
    },
    {
      "version": "0.1.2",
      "date": "2023-02-22"
    },
    {
      "version": "0.1.3",
      "date": "2023-05-04"
    },
    {
      "version": "0.2.0",
      "date": "2023-09-21"
    },
    {
      "version": "0.2.1",
      "date": "2024-05-30"
    },
    {
      "version": "0.2.2",
      "date": "2025-09-19"
    }
  ],
  "_exports": [
    "misim",
    "sim",
    "sim_adrf",
    "sim_ame",
    "sim_apply",
    "sim_setx"
  ],
  "_help": [
    {
      "page": "misim",
      "title": "Simulate model coefficients after multiple imputation",
      "topics": [
        "misim"
      ]
    },
    {
      "page": "plot.clarify_adrf",
      "title": "Plot marginal predictions from 'sim_adrf()'",
      "topics": [
        "plot.clarify_adrf"
      ]
    },
    {
      "page": "summary.clarify_est",
      "title": "Plotting and inference for 'clarify_est' objects",
      "topics": [
        "confint.clarify_est",
        "plot.clarify_est",
        "summary.clarify_est"
      ]
    },
    {
      "page": "plot.clarify_setx",
      "title": "Plot marginal predictions from 'sim_setx()'",
      "topics": [
        "plot.clarify_setx"
      ]
    },
    {
      "page": "sim",
      "title": "Simulate model parameters",
      "topics": [
        "sim"
      ]
    },
    {
      "page": "sim_adrf",
      "title": "Compute an average dose-response function",
      "topics": [
        "print.clarify_adrf",
        "sim_adrf"
      ]
    },
    {
      "page": "sim_ame",
      "title": "Compute average marginal effects",
      "topics": [
        "print.clarify_ame",
        "sim_ame"
      ]
    },
    {
      "page": "sim_apply",
      "title": "Apply a function to simulated parameter values",
      "topics": [
        "print.clarify_est",
        "sim_apply"
      ]
    },
    {
      "page": "sim_setx",
      "title": "Compute predictions and first differences at set values",
      "topics": [
        "print.clarify_setx",
        "sim_setx"
      ]
    },
    {
      "page": "transform.clarify_est",
      "title": "Transform and combine 'clarify_est' objects",
      "topics": [
        "cbind.clarify_est",
        "transform.clarify_est"
      ]
    }
  ],
  "_readme": "https://github.com/iqss/clarify/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "chk",
    "cli",
    "cpp11",
    "data.table",
    "farver",
    "Formula",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "insight",
    "isoband",
    "labeling",
    "lifecycle",
    "marginaleffects",
    "pbapply",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "clarify.Rmd",
      "filename": "clarify.html",
      "title": "clarify: Simulation-Based Inference for Regression Models",
      "engine": "knitr::rmarkdown_notangle",
      "headings": [
        "Introduction",
        "Related software",
        "Using clarify",
        "1. Fitting the model",
        "2. Drawing from the coefficient distribution",
        "3. Computing derived quantities",
        "4. Summarize and visualize the simulated distribution",
        "Wrappers for sim_apply(): sim_setx(), sim_ame(), and sim_adrf()",
        "sim_setx(): predictions at representative values",
        "sim_ame(): average adjusted predictions and average marginal effects",
        "sim_adrf(): average dose-response functions",
        "Transforming and combining estimates",
        "transform()",
        "cbind()",
        "Using clarify with multiply imputed data",
        "Comparison to other packages",
        "Conclusion",
        "References"
      ],
      "created": "2022-12-21 18:27:22",
      "modified": "2025-09-19 16:57:28",
      "commits": 12
    },
    {
      "source": "Zelig.Rmd",
      "filename": "Zelig.html",
      "title": "Translating Zelig to clarify",
      "engine": "knitr::rmarkdown_notangle",
      "headings": [
        "Introduction",
        "Predictions at representative values",
        "Zelig workflow",
        "clarify workflow",
        "Rare-events logit",
        "Estimating the ATT after matching",
        "Combining results after multiple imputation",
        "References"
      ],
      "created": "2022-12-14 17:21:16",
      "modified": "2025-09-18 21:32:07",
      "commits": 9
    }
  ],
  "_score": 6.667059013947043,
  "_indexed": true,
  "_nocasepkg": "clarify",
  "_universes": [
    "iqss",
    "ngreifer"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-05-17T07:29:27.000Z",
      "distro": "noble",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "9ca9f55c8701a90cd8aa9b6d6283651c002de4167a02c58b742f2ec06953bed0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-05-17T07:29:16.000Z",
      "distro": "noble",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "e35eaa28600389d78e03be6b91e5ecbbcecf001fc2deb672151796780104eb69",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-05-17T07:28:49.000Z",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "463acea5a92701d79ad15962e64ea99204fe391959e01baad0b0af4226294f24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-05-17T07:28:52.000Z",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "2b6df5ef4bed52d7a9a6f9d2fc2bff3244e03df8e5b1f516d3af289749f4ce03",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-17T07:28:33.000Z",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "3baba35ac189644782ec2ca1ff9991c56d6a3dffa665a79b06caa838b4f82f5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-17T07:28:09.000Z",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "df05675fd0d184f491621aa8225325e0176e366a285b90f0134fbc4e11839636",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-17T07:28:23.000Z",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "52f08bcfafb5c8d364b7bf3c91c5e663e229af57222c1ac57356a8222f650def",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.2",
      "date": "2026-06-02T17:30:07.000Z",
      "commit": "8b1cefe02a2516c8ee9dd9386a04e43724f7e030",
      "fileid": "6f8d422c072733d3885ba48e8049f96cca109a21e7bc1d531fb7a01531621068",
      "status": "success",
      "buildurl": "https://github.com/r-universe/iqss/actions/runs/25984500341"
    }
  ]
}