Skip to content

PSweight

2.1.2Package record

Propensity Score Weighting for Causal Inference with Observational Studies and Randomized Trials

2packages dependsuggested by 4
10.4Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Supports propensity score weighting analysis of observational studies and randomized trials. Enables the estimation and inference of average causal effects with binary and multiple treatments using overlap weights (ATO), inverse probability of treatment weights (ATE), average treatment effect among the treated weights (ATT), matching weights (ATM) and entropy weights (ATEN), with and without propensity score trimming. These weights are members of the family of balancing weights introduced in Li, Morgan and Zaslavsky (2018) doi:10.1080/01621459.2016.1260466 and Li and Li (2019) doi:10.1214/19-AOAS1282.

Changes in 2.1.2
  • Updated package vignette structure to ensure full PDF documentation is directly available on CRAN
  • Minor documentation improvements

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.2
READMEYes · 709 wordsVignettesYes · 1 · staticNEWSYes · 67% structured · mentions 2.1.2Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
30
Examples that run
83%19 run in a plain check · 4 hold no code
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
43%

Downloads

10.4K
CRAN downloads in the past year
Rank #4,117 · ~29/day · ~869/mo
Daily download trend is not available in this view yet.
87230 days
2.2K90 days
10.4K1 year
Compare downloads with other packages →
Also on124 r2u9 autocran81 c2d4u

Repository

28Stars
11Forks
11Open issues
1Open PRs
0Releases
23Commits
3Commit identities
23 commits · Last activity 2024-03-30 · The default branch showed an older version (1.2.0) than CRAN on 2026-10-21
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
not measured
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/thuizhou/psweight on 2026-10-21.

CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing PSweight adds 43 packages (22 with compiled code, 42 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, gplots 4.6 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (6)
Maintainer since 1.2.0 (2024) · added in 1.2.0
Author
Author

Previously maintained by Tianhui Zhou (0.1.0 to 1.1.8).

Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.2Latest
    record
    2025-07-23 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.1
    record
    2025-03-02 · diff ↗
  • 2.1.0
    record
    2025-02-12 · diff ↗ ·
    added 5 exports
    OUTmethod_SW, PSmethod_SW, PStrim_SW, PSweight_SW, SumStat_SW
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.0
    record
    2024-03-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.8
    record
    2022-10-18 · diff ↗
  • 1.1.7
    record
    2022-05-11 · diff ↗ ·
    added 2 exports
    PSweight_cl, SumStat_cl
  • R
    R 4.2.0 released · 2022-04-22
  • 1.1.6
    record
    2021-12-02 · diff ↗
  • 1.1.5
    record
    2021-10-28 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1.4
    record
    2021-04-02 · diff ↗ ·
    added 2 exports
    OUTmethod, PSmethod
  • 1.1.3
    record
    2021-02-25 · diff ↗
Show 6 earlier eventsHide 6 earlier events

Package metadata

First published
2020-05-04
Total releases
15 / 6 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
360 KB / 7 files
Download size
815 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("PSweight")
Zeng, Y., Li, F., Li, F., Thomas, L., Tong, G., & Zhou, T. (2025). PSweight: Propensity Score Weighting for Causal Inference with Observational Studies and Randomized Trials (Version 2.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.PSweight

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for PSweight version 2.1.2 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy