{
  "_id": "6ac29a88d743750d376d91e1",
  "Package": "propensity",
  "Title": "A Toolkit for Calculating and Working with Propensity Scores",
  "Version": "0.1.0.9000",
  "Authors@R": "person(\"Malcolm\", \"Barrett\", , \"malcolmbarrett@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-0299-5825\"))",
  "Description": "Calculates propensity score weights for multiple causal\n'estimands' across binary, continuous, and categorical\nexposures. Provides methods for handling extreme propensity\nscores through trimming, truncation, and calibration. Includes\ninverse probability weighted estimators that correctly account\nfor propensity score estimation uncertainty.",
  "License": "MIT + file LICENSE",
  "URL": "https://r-causal.github.io/propensity/,\nhttps://github.com/r-causal/propensity",
  "BugReports": "https://github.com/r-causal/propensity/issues",
  "VignetteBuilder": "knitr",
  "Remotes": [
    "r-causal/causalgenerics",
    "r-causal/deli"
  ],
  "Config/roxygen2/version": "8.1.0",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "Repository": "https://r-causal.r-universe.dev",
  "Date/Publication": "2026-10-04 17:09:50 UTC",
  "RemoteUrl": "https://github.com/r-causal/propensity",
  "RemoteRef": "HEAD",
  "RemoteSha": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-04 18:09:47 UTC",
    "User": "root"
  },
  "Author": "Malcolm Barrett [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-0299-5825>)",
  "Maintainer": "Malcolm Barrett <malcolmbarrett@gmail.com>",
  "_user": "r-causal",
  "_type": "src",
  "_file": "propensity_0.1.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/261845f20bd5056d036809695d1311d868dda10a21f2dd2f1a07a17dc074806f",
  "_filesize": 2790833,
  "_sha256": "261845f20bd5056d036809695d1311d868dda10a21f2dd2f1a07a17dc074806f",
  "_expires": "2027-01-12T18:27:18.000Z",
  "_created": "2026-10-04T18:09:47.000Z",
  "_published": "2026-10-04T18:27:20.542Z",
  "_jobs": [
    {
      "job": 111497950999,
      "time": 747,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11311725236"
    },
    {
      "job": 111497950962,
      "time": 1005,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11310999356"
    },
    {
      "job": 111497950912,
      "time": 385,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11311081974"
    },
    {
      "job": 111497950902,
      "time": 500,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11310868803"
    },
    {
      "job": 111497142551,
      "time": 251,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11310668499"
    },
    {
      "job": 111497950892,
      "time": 136,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11311206404"
    },
    {
      "job": 111497950942,
      "time": 917,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11311461757"
    },
    {
      "job": 111497950943,
      "time": 781,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11311501523"
    },
    {
      "job": 111497950956,
      "time": 836,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11310874578"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253",
  "_status": "success",
  "_upstream": "https://github.com/r-causal/propensity",
  "_commit": {
    "id": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
    "author": "Malcolm Barrett <malcolmbarrett@gmail.com>",
    "committer": "Malcolm Barrett <malcolmbarrett@gmail.com>",
    "message": "Merge branch 'r-universe-readme' into main\n",
    "time": 1791133790
  },
  "_maintainer": {
    "name": "Malcolm Barrett",
    "email": "malcolmbarrett@gmail.com",
    "login": "malcolmbarrett",
    "mastodon": "@malcolmbarrett@mstdn.jp",
    "bluesky": "@malcolmbarrett.malco.io",
    "orcid": "0000-0003-0299-5825",
    "description": "Open-source data science. Ph.D. in Epidemiology",
    "uuid": 23123711
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3",
      "role": "Depends"
    },
    {
      "package": "causalgenerics",
      "version": ">= 0.1.0.9000",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "deli",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "version": ">= 0.6.5",
      "role": "Imports"
    },
    {
      "package": "bench",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "version": ">= 3.18.0",
      "role": "Suggests"
    },
    {
      "package": "nnet",
      "role": "Suggests"
    },
    {
      "package": "parsnip",
      "role": "Suggests"
    },
    {
      "package": "probably",
      "role": "Suggests"
    },
    {
      "package": "PSweight",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.9",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "r-causal",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-45",
      "n": 3
    },
    {
      "week": "2026-08",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 4
    },
    {
      "week": "2026-10",
      "n": 3
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-32",
      "n": 8
    },
    {
      "week": "2026-33",
      "n": 2
    },
    {
      "week": "2026-35",
      "n": 3
    },
    {
      "week": "2026-36",
      "n": 2
    },
    {
      "week": "2026-38",
      "n": 2
    },
    {
      "week": "2026-40",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-02-24"
    }
  ],
  "_stars": 26,
  "_contributors": [
    {
      "user": "malcolmbarrett",
      "count": 737,
      "uuid": 23123711
    },
    {
      "user": "lucymcgowan",
      "count": 2,
      "uuid": 8431897
    }
  ],
  "_userbio": {
    "uuid": 129535100,
    "type": "organization",
    "name": "Causal Inference in R",
    "followers": 176,
    "description": "Tools and educational material for causal inference in R"
  },
  "_downloads": {
    "count": 355,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/propensity"
  },
  "_devurl": "https://github.com/r-causal/propensity",
  "_pkgdown": "https://r-causal.github.io/propensity/",
  "_searchresults": 126,
  "_rbuild": "4.6.1",
  "_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/propensity.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/r-causal/propensity",
  "_realowner": "r-causal",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-03-02"
    }
  ],
  "_exports": [
    "as_conditional",
    "as_marginal",
    "as_psw",
    "augment",
    "dens_fn",
    "dens_kernel",
    "dens_laplace",
    "dens_normal",
    "dens_t",
    "density_meta",
    "estimand",
    "estimand<-",
    "exposure_type",
    "glance",
    "ipw",
    "is_causal_wt",
    "is_joint_wt",
    "is_joint_wt_models",
    "is_ps_calibrated",
    "is_ps_trimmed",
    "is_ps_truncated",
    "is_psw",
    "is_refit",
    "is_stabilized",
    "is_unit_trimmed",
    "is_unit_truncated",
    "is_unit_wt_truncated",
    "is_wt_truncated",
    "joint_wt_meta",
    "joint_wt_models",
    "new_psw",
    "numerator_model",
    "pool_ipw",
    "ps_calibrate",
    "ps_refit",
    "ps_tilt",
    "ps_trim",
    "ps_trim_meta",
    "ps_trunc",
    "ps_trunc_meta",
    "psw",
    "stabilization_score",
    "tidy",
    "wt_atc",
    "wt_ate",
    "wt_atm",
    "wt_ato",
    "wt_att",
    "wt_atu",
    "wt_cens",
    "wt_entropy",
    "wt_joint",
    "wt_trunc",
    "wt_trunc_sensitivity"
  ],
  "_help": [
    {
      "page": "propensity-package",
      "title": "propensity: A Toolkit for Calculating and Working with Propensity Scores",
      "topics": [
        "propensity-package",
        "propensity"
      ]
    },
    {
      "page": "augment.ipw",
      "title": "Augment an inverse probability weighted result with per-observation columns",
      "topics": [
        "augment.ipw"
      ]
    },
    {
      "page": "dens_normal",
      "title": "Density specifications for continuous exposures",
      "topics": [
        "dens_fn",
        "dens_kernel",
        "dens_laplace",
        "dens_normal",
        "dens_t"
      ]
    },
    {
      "page": "exposure_type",
      "title": "What a set of weights records about the exposure",
      "topics": [
        "density_meta",
        "exposure_type",
        "format.propensity_density_meta",
        "print.propensity_density_meta"
      ]
    },
    {
      "page": "glance.ipw",
      "title": "Glance at an inverse probability weighted result",
      "topics": [
        "glance.ipw"
      ]
    },
    {
      "page": "glance.ipw_pooled",
      "title": "Glance at a pooled inverse probability weighted result",
      "topics": [
        "glance.ipw_pooled"
      ]
    },
    {
      "page": "ipw-methods",
      "title": "Inverse Probability Weighted Estimation",
      "topics": [
        "ipw-methods",
        "ipw.glm",
        "ipw.joint_wt_models",
        "ipw.lm",
        "ipw.multinom"
      ]
    },
    {
      "page": "is_ps_calibrated",
      "title": "Check if propensity scores are calibrated",
      "topics": [
        "is_ps_calibrated"
      ]
    },
    {
      "page": "is_ps_trimmed",
      "title": "Test whether propensity scores have been trimmed",
      "topics": [
        "is_ps_trimmed"
      ]
    },
    {
      "page": "is_ps_truncated",
      "title": "Test whether propensity scores have been truncated",
      "topics": [
        "is_ps_truncated"
      ]
    },
    {
      "page": "is_refit",
      "title": "Check if propensity scores have been refit",
      "topics": [
        "is_refit"
      ]
    },
    {
      "page": "is_unit_trimmed",
      "title": "Identify which units were trimmed",
      "topics": [
        "is_unit_trimmed"
      ]
    },
    {
      "page": "is_unit_truncated",
      "title": "Identify which units were truncated",
      "topics": [
        "is_unit_truncated"
      ]
    },
    {
      "page": "is_wt_truncated",
      "title": "Test whether the weights themselves have been truncated",
      "topics": [
        "is_unit_wt_truncated",
        "is_wt_truncated"
      ]
    },
    {
      "page": "joint_wt_models",
      "title": "Record the two treatment models of a joint exposure",
      "topics": [
        "is_joint_wt_models",
        "joint_wt_models"
      ]
    },
    {
      "page": "numerator_model",
      "title": "The model a set of weights was stabilized on",
      "topics": [
        "numerator_model"
      ]
    },
    {
      "page": "print.ipw_diagnostic_se",
      "title": "Print a result whose standard errors are a diagnostic",
      "topics": [
        "as.data.frame.ipw_diagnostic_se",
        "print.ipw_diagnostic_se",
        "tidy.ipw_diagnostic_se"
      ]
    },
    {
      "page": "ps_calibrate",
      "title": "Calibrate propensity scores",
      "topics": [
        "ps_calibrate"
      ]
    },
    {
      "page": "ps_refit",
      "title": "Refit a Propensity Score Model on Retained Observations",
      "topics": [
        "ps_refit"
      ]
    },
    {
      "page": "ps_tilt",
      "title": "Propensity score tilting functions",
      "topics": [
        "ps_tilt"
      ]
    },
    {
      "page": "ps_trim",
      "title": "Trim Propensity Scores",
      "topics": [
        "ps_trim"
      ]
    },
    {
      "page": "ps_trim_meta",
      "title": "Extract trimming metadata from a 'ps_trim' object",
      "topics": [
        "ps_trim_meta"
      ]
    },
    {
      "page": "ps_trunc",
      "title": "Truncate (Winsorize) Propensity Scores",
      "topics": [
        "ps_trunc"
      ]
    },
    {
      "page": "ps_trunc_meta",
      "title": "Extract truncation metadata from a 'ps_trunc' object",
      "topics": [
        "ps_trunc_meta"
      ]
    },
    {
      "page": "psw",
      "title": "Propensity Score Weight Vectors",
      "topics": [
        "as_psw",
        "is_psw",
        "is_stabilized",
        "new_psw",
        "psw",
        "stabilization_score"
      ]
    },
    {
      "page": "tidy.ipw",
      "title": "Tidy an inverse probability weighted result",
      "topics": [
        "tidy.ipw"
      ]
    },
    {
      "page": "tidy.ipw_pooled",
      "title": "Tidy a pooled inverse probability weighted result",
      "topics": [
        "tidy.ipw_pooled"
      ]
    },
    {
      "page": "wt_ate",
      "title": "Calculate propensity score weights",
      "topics": [
        "wt_atc",
        "wt_ate",
        "wt_ate.data.frame",
        "wt_atm",
        "wt_atm.data.frame",
        "wt_ato",
        "wt_ato.data.frame",
        "wt_att",
        "wt_att.data.frame",
        "wt_atu",
        "wt_atu.data.frame",
        "wt_cens",
        "wt_cens.data.frame",
        "wt_entropy",
        "wt_entropy.data.frame"
      ]
    },
    {
      "page": "wt_joint",
      "title": "Product weights for a joint intervention on two treatments",
      "topics": [
        "is_joint_wt",
        "joint_wt_meta",
        "wt_joint"
      ]
    },
    {
      "page": "wt_trunc",
      "title": "Truncate (Winsorize) Propensity Score Weights",
      "topics": [
        "wt_trunc"
      ]
    },
    {
      "page": "wt_trunc_sensitivity",
      "title": "Tabulate Truncated Weights Over a Grid of Bounds",
      "topics": [
        "wt_trunc_sensitivity"
      ]
    }
  ],
  "_pkglogo": "https://github.com/r-causal/propensity/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/r-causal/propensity/raw/HEAD/README.md",
  "_rundeps": [
    "causalgenerics",
    "cli",
    "deli",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "rlang",
    "rootSolve",
    "S7",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "effect-modification.Rmd",
      "filename": "effect-modification.html",
      "title": "Effect modification and interaction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Two different questions",
        "A dataset where they diverge",
        "Effect modification with .by",
        "Interaction with a joint intervention",
        "Why the two numbers differ",
        "Interaction is symmetric",
        "Odds ratios and effect modification",
        "Guardrails on joint weights",
        "Two notes on labels",
        "Learning more"
      ],
      "created": "2026-08-10 20:56:16",
      "modified": "2026-08-29 14:11:53",
      "commits": 3
    },
    {
      "source": "propensity.Rmd",
      "filename": "propensity.html",
      "title": "Getting Started with propensity",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "Basic workflow",
        "Step 1: Fit a propensity score model",
        "Step 2: Calculate weights and fit a weighted outcome model",
        "Step 3: Estimate causal effects",
        "Choosing an estimand",
        "Handling extreme weights",
        "Overlap estimands",
        "Trimming",
        "Truncation",
        "Which approach?",
        "Interpreting results",
        "Binary outcomes",
        "Continuous outcomes",
        "Next steps",
        "Continuous exposures",
        "Categorical exposures",
        "Calibration",
        "Censoring weights",
        "Learning more"
      ],
      "created": "2026-02-23 23:40:36",
      "modified": "2026-09-17 17:48:11",
      "commits": 8
    }
  ],
  "_score": 8.33488782863025,
  "_indexed": true,
  "_nocasepkg": "propensity",
  "_universes": [
    "r-causal",
    "malcolmbarrett"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:12:35.000Z",
      "distro": "resolute",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/23e70319046d63a3973ca14a23f2727237239853c15721e6a7e9f91136ec79e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:12:22.000Z",
      "distro": "resolute",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/b4f0246686c08a84efb9a32ba9f09c2e4a6714ef954cb2cbba5a3a468398429d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:11:58.000Z",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/20485ab5321ce5d3b2b1d4b381fc2e266375a16d31c302a278d3770344bd5398",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:12:24.000Z",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/156f535a85a945b14832ac4e650066679011f569363e1adb89e3179f8b35d225",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:12:30.000Z",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/fbe9884e5968d14396a5807d2345ad54e8534e64a20ffb8eec6e622167914cab",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:11:45.000Z",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/08108a252ef78533809298fe0f4ea940a059a35d1c12e6b335dd0d5dbf567756",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:11:10.000Z",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/802ecb76da8271abe1f1797d90cf1cf03d0e9ef8b1b9d557d0c92d4b0bd84832",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-10-04T18:11:21.000Z",
      "commit": "e9d163a2ac339d5b2c62a650fbbf3bfc5ac5b3c8",
      "fileid": "https://r2.ropensci.org/a3786597d505664870571aebb65d5f02872be3d4f6f4be7cc9581c85fd603660",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/37223054253"
    }
  ]
}