Learn R Programming

psrwe

High-quality real-world data can be transformed into scientific real-world evidence (RWE) for regulatory and healthcare decision-making using proven analytical methods and techniques. For example, propensity score (PS) methodology can be applied to pre-select a subset of real-world data containing patients that are similar to those in the current clinical study in terms of covariates, and to stratify the selected patients together with those in the current study into more homogeneous strata. Then, methods such as the power prior approach or composite likelihood approach can be applied in each stratum to draw inference for the parameters of interest. This package provides functions that implement the PS-integrated RWE analysis methods proposed in Wang et al. (2019), Wang et al. (2020), and Chen et al. (2020).

Installation

You can install the released version of psrwe from CRAN with:

install.packages("psrwe")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("olssol/psrwe")

References

  1. Wang C, Li H, Chen WC, Lu N, Tiwari R, Xu Y, Yue LQ. Propensity score-integrated power prior approach for incorporating real-world evidence in single-arm clinical studies. Journal of Biopharmaceutical Statistics, 2019; 29, 731–748. https://doi.org/10.1080/10543406.2019.1657133.

  2. Chen WC, Wang C, Li H, Lu N, Tiwari R, Xu Y, Yue LQ. (2020), Propensity score-integrated composite likelihood approach for augmenting the control arm of a randomized controlled trial by incorporating real-world data. Journal of Biopharmaceutical Statistics, 2020; 30, 508–520. https://doi.org/10.1080/10543406.2020.1730877.

  3. Wang C, Lu N, Chen WC, Li H, Tiwari R, Xu Y, Yue LQ. (2020), Propensity score-integrated composite likelihood approach for incorporating real-world evidence in single-arm clinical studies. Journal of Biopharmaceutical Statistics, 2020; 30, 495–507. https://doi.org/10.1080/10543406.2019.1684309.

Copy Link

Version

Install

install.packages('psrwe')

Monthly Downloads

219

Version

3.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Wei-Chen Chen

Last Published

January 15th, 2026

Functions in psrwe (3.2)

plot.PSRWE_DTA_MAT

Plot PS distributions
psrwe_outana

Outcome Analysis for PS-Integrated Estimation
psrwe_survlrk

PS-Integrated Log-Rank Test For Comparing Time-to-event Outcomes
psrwe_powerp

Get posterior samples based on PS-power prior approach
plot.PSRWE_RST

Plot estimation results for power prior approach
psrwe_survrmst

PS-Integrated Restricted Mean Survival Time (RMST) Test For Comparing Time-to-event Outcomes
psrwe_match

PS matching
rwe_rmst

RMST Estimation
rwe_stan

Call STAN models
psrwe_infer

Inference for the PS-Integrated Estimation
psrwe_powerp_watt

Get posterior samples based on PS-power prior approach (WATT)
psrwe_survkm

PS-Integrated Kaplan-Meier Estimation
rwe_cut

Create strata
rwe_cl

Composite Likelihood Estimation
summary.PSRWE_DTA

Summarize PS estimation and stratification results
rwe_km

Kaplan-Meier Estimation
summary.PSRWE_DTA_MAT

Summarize PS estimation and matching results
rwe_lrk

Log-rank Estimation
print.PSRWE_RST_OUTANA

Print outcome analysis results
summary.PSRWE_RST_OUTANA

Summary outcome analysis results
summary.PSRWE_RST

Summarize overall estimation results
psrwe-package

PS-Integrated Methods for Incorporating RWE in Clinical Studies
get_distance

Distance between two distributions
plot.PSRWE_DTA

Plot PS distributions
print.PSRWE_DTA_MAT

Print PS estimation results
ex_dta

Example dataset
ex_dta_rct

Example dataset
print.PSRWE_DTA

Print PS estimation results
print.PSRWE_BOR

Print borrow information
print.PSRWE_RST

Print estimation results
psrwe_compl

PS-Integrated Composite Likelihood Estimation
psrwe_est

Estimate propensity scores
psrwe_ci

Confidence/Credible Interval for PS-Integrated Estimation
psrwe_borrow

Get number of subjects borrowed from each statum