Package: rwetools 0.1.2
rwetools: Estimating Propensity Scores (PS), PS-Based Weights, and Effects
Toolbox that provides a streamlined, end-to-end workflow for propensity score analysis in generating real-world evidence from real-world data. The package covers the full analytic pipeline - from estimating propensity scores via logistic regression, to calculating weights or creating a matched cohort, to generating publication-ready Table 1s with standardized mean differences and weighted balance diagnostics. It also estimates incidence rates, hazard ratios, risk ratios, and risk differences with support for stratified and direct-standardized analyses. All core functions produce formatted 'Excel' reports with embedded 'README' documentation, making results immediately shareable with collaborators and stakeholders. Methods are based on Rosenbaum and Rubin (1983) <doi:10.1093/biomet/70.1.41>, Austin (2011) <doi:10.1080/00273171.2011.568786>, and Desai et al. (2017) <doi:10.1097/EDE.0000000000000595>.
Authors:
rwetools_0.1.2.tar.gz
rwetools_0.1.2.zip(r-4.7)rwetools_0.1.2.zip(r-4.6)rwetools_0.1.2.zip(r-4.5)
rwetools_0.1.2.tgz(r-4.6-any)rwetools_0.1.2.tgz(r-4.5-any)
rwetools_0.1.2.tar.gz(r-4.7-any)rwetools_0.1.2.tar.gz(r-4.6-any)
rwetools_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
rwetools/json (API)
NEWS
| # Install 'rwetools' in R: |
| install.packages('rwetools', repos = c('https://hanseul0618.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hanseul0618/rwetools/issues
Last updated from:7c6a8eafd9. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 136 | ||
| source / vignettes | OK | 168 | ||
| linux-release-x86_64 | OK | 153 | ||
| macos-release-arm64 | OK | 130 | ||
| macos-oldrel-arm64 | OK | 174 | ||
| windows-devel | OK | 94 | ||
| windows-release | OK | 96 | ||
| windows-oldrel | OK | 108 | ||
| wasm-release | OK | 110 |
Exports:build_table1create_ps_fs_weightscreate_ps_matched_cohortcreate_ps_weightsestimate_hr_irestimate_psestimate_rr_rd
Dependencies:DBIlatticeMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build a Table 1 comparing baseline characteristics between groups | build_table1 |
| Calculate PS Fine Stratification Weights, Trim Non-overlapping Regions, and Generate Diagnostics | create_ps_fs_weights |
| Perform propensity score matching and optionally generate diagnostic reports. | create_ps_matched_cohort |
| Calculate propensity score weights and optionally generate diagnostic reports. | create_ps_weights |
| Estimate Incidence Rates and Hazard Ratios | estimate_hr_ir |
| Calculate propensity scores and add them to the dataset | estimate_ps |
| Estimate Risk Ratios and Risk Differences using Cumulative Incidence | estimate_rr_rd |
