PStrata: Principal Stratification Analysis in R

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.

Getting started

Package details

AuthorBo Liu [aut, cre], Fan Li [ctb]
MaintainerBo Liu <bo.liu1997@gmail.com>
LicenseGPL (>= 2)
Version1.0.0
URL https://github.com/LauBok/PStrata
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("PStrata")

Try the PStrata package in your browser

Any scripts or data that you put into this service are public.

PStrata documentation built on May 14, 2026, 5:06 p.m.