{
  "_id": "6a22a8590ef520ea2f58ac56",
  "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-06-05 10:39:36 UTC",
    "User": "root"
  },
  "Author": "Malcolm Barrett [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-0299-5825>)",
  "Maintainer": "Malcolm Barrett <malcolmbarrett@gmail.com>",
  "MD5sum": "b09fddfcbb0b5bd8630f4dba1d636b89",
  "_user": "r-causal",
  "_type": "src",
  "_file": "propensity_0.1.0.9000.tar.gz",
  "_fileid": "22162b864a12610a2ceaa4dd5e34c773393039225c7db195d68edae28b947b6f",
  "_filesize": 1179857,
  "_sha256": "22162b864a12610a2ceaa4dd5e34c773393039225c7db195d68edae28b947b6f",
  "_created": "2026-06-05T10:39:36.000Z",
  "_published": "2026-06-05T10:43:37.494Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79711509066,
      "time": 206,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7434662771"
    },
    {
      "job": 79711509030,
      "time": 173,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434653950"
    },
    {
      "job": 79711509036,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7434642955"
    },
    {
      "job": 79711509031,
      "time": 94,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434631582"
    },
    {
      "job": 79711001315,
      "time": 219,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434604733"
    },
    {
      "job": 79711509026,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434642082"
    },
    {
      "job": 79711509033,
      "time": 110,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7434636313"
    },
    {
      "job": 79711509099,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7434635181"
    },
    {
      "job": 79711509064,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7434633724"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "description": "Tools and educational material for causal inference in R"
  },
  "_downloads": {
    "count": 328,
    "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.0",
  "_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",
    "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-06-05T10:42:39.000Z",
      "distro": "noble",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "174c4f14635ae6dd25cfcca998b28513d3a504277821c323b78829ea785b8a9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:42:11.000Z",
      "distro": "noble",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "4384798c64a76c91661d3a30c764ec05e3b19d53ecea9a538cf54a9035abda7c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:41:38.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "4f21847d92a2b607f6634358e2cccbec3de276c8590a301de8a3ca5cfcb88dd1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:41:02.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "78519916f47bb5ca1abe91653e8a39795be90c643dcb9c584a6518250158c4dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:42:04.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "d279f9af71174c5c321bcf1329a76defb4ef480c8f9a38617c65624f1f6d91f1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:40:54.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "05e01d3f35dc26f073d0c8fcddc618214b2554f72724eeac4e2b59bb17f4d897",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:40:52.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "1e3e10fdb172a5fc95164e7fae0a8757a81aa832677e05ea95e76b7d27eda246",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-06-05T10:40:47.000Z",
      "commit": "1bd5e02f2c2833909aa2ec9f73a71fd945c010a5",
      "fileid": "40ace7ccfb3ab165d6776513e2371bbfff0c9311a42aa9c374c4da5c9d124b66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/27009992088"
    }
  ]
}