The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Computes sample size and power for causal inference studies that use propensity score (PS) weighting. Supports continuous, binary, and time-to-event (survival) outcomes under four estimands: average treatment effect (ATE), average treatment effect on the treated (ATT), average treatment effect on the controls (ATC), and average treatment effect on the overlap population (ATO). For continuous and binary outcomes, the asymptotic variance of the Hajek inverse probability weighting estimator is derived under a logit-normal propensity score model, approximated by a Beta distribution matched through the Bhattacharyya overlap coefficient. For survival outcomes, the asymptotic variance of the propensity-score- weighted partial likelihood estimator is used for randomized trials and observational studies. The Schoenfeld formula is also available for randomized trial settings.
| Version: | 2.0.0 |
| Depends: | R (≥ 3.5.0) |
| Imports: | stats |
| Suggests: | ggplot2, knitr, rmarkdown, testthat (≥ 3.0.0) |
| Published: | 2026-05-14 |
| DOI: | 10.32614/CRAN.package.PSpower |
| Author: | Bo Liu [aut, cre], Chengxin Yang [aut], Fan Li [aut] |
| Maintainer: | Bo Liu <bo.liu1997 at gmail.com> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| Materials: | NEWS |
| CRAN checks: | PSpower results |
| Reference manual: | PSpower.html , PSpower.pdf |
| Vignettes: |
Getting Started with PSpower (source, R code) |
| Package source: | PSpower_2.0.0.tar.gz |
| Windows binaries: | r-devel: PSpower_2.0.0.zip, r-release: PSpower_2.0.0.zip, r-oldrel: PSpower_2.0.0.zip |
| macOS binaries: | r-release (arm64): PSpower_2.0.0.tgz, r-oldrel (arm64): PSpower_2.0.0.tgz, r-release (x86_64): PSpower_2.0.0.tgz, r-oldrel (x86_64): PSpower_2.0.0.tgz |
| Old sources: | PSpower archive |
Please use the canonical form https://CRAN.R-project.org/package=PSpower to link to this page.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.