Skip to content

PSpower

2.0.0

Sample Size and Power for Propensity Score Weighted Estimators

0packages depend
2.6Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Bo LiuFirst published 2025-01-153 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-release-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

2.6K
CRAN downloads in the past year
Rank #10,495 · ~7/day · ~220/mo
Daily download trend is not available in this view yet.
24730 days
1K90 days
2.6K1 year
Compare downloads with other packages →
Also on105 r2u34 autocran

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (1)
stats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Author · added in 2.0.0
Listed in earlier versions (1)
no longer listed · 0.1.0 to 0.1.1
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.0.0Latest
    2026-05-14 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.1
    2025-04-02 · diff ↗
  • 0.1.0
    2025-01-15
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-01-15
Total releases
3 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Download size
4.5 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →