Published October 26, 2026
| Version v1.0.0
Software
Open
WentaoGuo19/pswmap: pswmap 1.0.0
Description
First release of pswmap, the R package implementing the propensity-score-weighted meta-analytic predictive (PSW-MAP) prior of Guo and Zhu for borrowing external control data into a randomized trial when baseline covariates are missing in the external data.
pswmap()runs the full analysis in one call: source-specific propensity scores and odds weights, weighted source summaries, the robust PSW-MAP prior and the posterior of the treatment effect.borrow = FALSEanalyses the trial alone.- Missing external covariates: multiple imputation within each source (default), complete-case weighting, or the learner's native missing-data handling.
- Propensity score learners: logistic regression (default), BART, random forest and XGBoost.
- Step functions for advanced users:
psw_weights(),psw_summaries(),psw_reference_scale(),psw_map_prior(),psw_posterior(). - Example data
pswmap_example.
Install with remotes::install_github("WentaoGuo19/pswmap@v1.0.0").
The simulation study of the paper is in pswmap-paper.
Files
WentaoGuo19/pswmap-v1.0.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/WentaoGuo19/pswmap/tree/v1.0.0 (URL)
Software
- Repository URL
- https://github.com/WentaoGuo19/pswmap