Skip to content

PStrata

Principal Stratification Analysis in R

v1.0.1 · May 15, 2026 · GPL (>= 2)

Description

Estimating causal effects in the presence of post-treatment confounding using principal stratification. 'PStrata' allows for customized monotonicity assumptions and exclusion restriction assumptions, with automatic full Bayesian inference supported by 'Stan'. The main workflow is PStrataModel() to specify the model, fit() to run MCMC sampling, estimate() to extract potential outcomes, and contrast() to compute causal effects. Visualization tools are provided for diagnosis and interpretation. See Liu and Li (2023) <doi:10.48550/arXiv.2304.02740> for details.

Downloads

CRAN

525

Last 30 days

6890th

1.8K

Last 90 days

3.7K

Last year

Trend: -14.6% (30d vs prior 30d)

r2u CRAN

18

Last 30 days

44

Last 90 days

120

Last year

Trend: +5.9% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 10 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies ggplot2 rstan lme4 reformulas purrr stringr PStrata

Version History

9 tracked
updated 1.0.1 ← 1.0.0 diff May 15, 2026
updated 1.0.0 ← 0.1.0 diff May 14, 2026
new 0.1.0 Mar 10, 2026
updated 0.1.0 ← 0.0.5 diff Mar 7, 2026
updated 0.0.5 ← 0.0.4 diff Dec 2, 2023
updated 0.0.4 ← 0.0.3 diff Nov 15, 2023
updated 0.0.3 ← 0.0.2 diff Oct 17, 2023
updated 0.0.2 ← 0.0.1 diff Jul 16, 2023
new 0.0.1 May 7, 2023