{
  "_id": "6a4a24c5218ced0149571d95",
  "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",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Repository": "https://r-causal.r-universe.dev",
  "Date/Publication": "2026-05-06 01:03:52 UTC",
  "RemoteUrl": "https://github.com/r-causal/propensity",
  "RemoteRef": "HEAD",
  "RemoteSha": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-05 09:29:03 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/d6c94f30670bbf10c82ce3f129e6105a334ace6da02369c9387a0b50f8f5d46d",
  "_filesize": 1181750,
  "_sha256": "d6c94f30670bbf10c82ce3f129e6105a334ace6da02369c9387a0b50f8f5d46d",
  "_expires": "2026-10-13T09:32:51.000Z",
  "_created": "2026-07-05T09:29:03.000Z",
  "_published": "2026-07-05T09:32:53.280Z",
  "_jobs": [
    {
      "job": 85210917821,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090454211"
    },
    {
      "job": 85210917804,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090454117"
    },
    {
      "job": 85210917817,
      "time": 104,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090445359"
    },
    {
      "job": 85210917805,
      "time": 121,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090447467"
    },
    {
      "job": 85210697024,
      "time": 204,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090432005"
    },
    {
      "job": 85210917801,
      "time": 190,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8090455979"
    },
    {
      "job": 85210917840,
      "time": 130,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090448611"
    },
    {
      "job": 85210917856,
      "time": 147,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090450771"
    },
    {
      "job": 85210917818,
      "time": 164,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090452835"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252",
  "_status": "success",
  "_upstream": "https://github.com/r-causal/propensity",
  "_commit": {
    "id": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
    "author": "Malcolm Barrett <malcolmbarrett@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #50 from r-causal/fix-subset\n\nFix subset with glm ",
    "time": 1778029432
  },
  "_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.2.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "version": ">= 0.6.5",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "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.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "r-causal",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-29",
      "n": 3
    },
    {
      "week": "2025-31",
      "n": 6
    },
    {
      "week": "2025-32",
      "n": 7
    },
    {
      "week": "2025-33",
      "n": 2
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "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
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-02-24"
    }
  ],
  "_stars": 23,
  "_contributors": [
    {
      "user": "malcolmbarrett",
      "count": 185,
      "uuid": 23123711
    },
    {
      "user": "lucymcgowan",
      "count": 2,
      "uuid": 8431897
    }
  ],
  "_userbio": {
    "uuid": 129535100,
    "type": "organization",
    "name": "Causal Inference in R",
    "followers": 169,
    "description": "Tools and educational material for causal inference in R"
  },
  "_downloads": {
    "count": 420,
    "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": 106,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/propensity.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/r-causal/propensity",
  "_realowner": "r-causal",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-03-02"
    }
  ],
  "_exports": [
    "as_psw",
    "estimand",
    "estimand<-",
    "ipw",
    "is_causal_wt",
    "is_ps_calibrated",
    "is_ps_trimmed",
    "is_ps_truncated",
    "is_psw",
    "is_refit",
    "is_stabilized",
    "is_unit_trimmed",
    "is_unit_truncated",
    "new_psw",
    "ps_calibrate",
    "ps_refit",
    "ps_trim",
    "ps_trim_meta",
    "ps_trunc",
    "ps_trunc_meta",
    "psw",
    "wt_atc",
    "wt_ate",
    "wt_atm",
    "wt_ato",
    "wt_att",
    "wt_atu",
    "wt_cens",
    "wt_entropy"
  ],
  "_help": [
    {
      "page": "propensity-package",
      "title": "propensity: A Toolkit for Calculating and Working with Propensity Scores",
      "topics": [
        "propensity-package",
        "propensity"
      ]
    },
    {
      "page": "ipw",
      "title": "Inverse Probability Weighted Estimation",
      "topics": [
        "as.data.frame.ipw",
        "ipw"
      ]
    },
    {
      "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": "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_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",
        "estimand",
        "estimand<-",
        "is_causal_wt",
        "is_psw",
        "is_stabilized",
        "new_psw",
        "psw"
      ]
    },
    {
      "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"
      ]
    }
  ],
  "_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": [
    "cli",
    "glue",
    "lifecycle",
    "rlang",
    "tidyselect",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "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-02-23 23:40:36",
      "commits": 1
    }
  ],
  "_score": 7.563124960338045,
  "_indexed": true,
  "_nocasepkg": "propensity",
  "_universes": [
    "r-causal",
    "malcolmbarrett"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:31:42.000Z",
      "distro": "resolute",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/eca8fa2b85f56f051a5065064a770709b2fe7de8541191b669cd8492a0d6f2a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:31:39.000Z",
      "distro": "resolute",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/7adf580a2304270120b79684c290fb1e65734b8df68daa93dedd8f97e3dbb436",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:30:41.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/8f3656c6d820c70de55ed3c7eff27edbac02bc455e0da68b598feef15e56be18",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:30:55.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/7b4653cfc1da2e3542ea6c4b94c24b721fc71a2a6348611560bcf17c99f7c1bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:32:30.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/e7b940640670fa762de8b65258c0240c616a8a781e0355202df40265ebd67b0d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:30:42.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/444af75ec96e71f668c7ff63ef60bbe6d25045727db9a789687df109840acc31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:30:49.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/b7f22235d27ab8fd8d6529d0da0c13b8bc15dee63d3831a0b9907ccc43e64826",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-07-05T09:31:17.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "https://r2.ropensci.org/7ff4dbd3ff7b5cb07b7e8b46ce10fe39adba7190f4b06d4e5d555287ec102a33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/28736183252"
    }
  ]
}