Package: rwetools 0.5.0
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, rate differences and rate ratios, hazard ratios, risks, risk ratios, and risk differences, including competing-risk methods and optionally stratified hazard models. Many functions can write formatted 'Excel' reports with method 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.5.0.tar.gz
rwetools_0.5.0.zip(r-4.7-any)rwetools_0.5.0.zip(r-4.6-any)rwetools_0.5.0.zip(r-4.5-any)
rwetools_0.5.0.tgz(r-4.6-any)rwetools_0.5.0.tgz(r-4.5-any)
rwetools_0.5.0.tar.gz(r-4.7-any)rwetools_0.5.0.tar.gz(r-4.6-any)
rwetools_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rwetools/json (API)
| # 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:51aac903b6. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 125 | ||
| source / vignettes | OK | 179 | ||
| linux-release | OK | 135 | ||
| macos-release | OK | 179 | ||
| macos-oldrel | OK | 206 | ||
| windows-devel | OK | 109 | ||
| windows-release | OK | 110 | ||
| windows-oldrel | OK | 153 | ||
| wasm-release | OK | 92 |
Exports:build_table1create_iptwcreate_matching_weightscreate_overlap_weightscreate_ps_fs_weightscreate_ps_matched_cohortestimate_hrestimate_irestimate_psestimate_risk
Dependencies:DBIlatticeMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build an Unweighted or Weighted Baseline-Characteristics Table | build_table1 |
| Inverse-probability-of-treatment weights (IPTW, ATE) | create_iptw |
| Propensity-score matching weights (ATM) | create_matching_weights |
| Propensity-score overlap weights (ATO) | create_overlap_weights |
| Create Propensity-Score Fine-Stratification Weights | create_ps_fs_weights |
| Create a Propensity-Score-Matched Cohort | create_ps_matched_cohort |
| Estimate a Cox Hazard Ratio or Fine-Gray Subdistribution Hazard Ratio | estimate_hr |
| Estimate Marginal Incidence Rates, Rate Differences, and Rate Ratios | estimate_ir |
| Calculate propensity scores and add them to the dataset | estimate_ps |
| Estimate Marginal Risks, Risk Ratios, and Risk Differences | estimate_risk |
