Confounder-Adjusted Survival Curves and Cumulative Incidence Functions
Overview
Estimate and plot confounder-adjusted survival curves using either 'Direct Adjustment', 'Direct Adjustment with Pseudo-Values', various forms of 'Inverse Probability of Treatment Weighting', two forms of 'Augmented Inverse Probability of Treatment Weighting', 'Empirical Likelihood Estimation' or 'Targeted Maximum Likelihood Estimation'. Also includes a significance test for the difference between two adjusted survival curves and the calculation of adjusted restricted mean survival times. Additionally enables the user to estimate and plot cause-specific confounder-adjusted cumulative incidence functions in the competing risks setting using the same methods (with some exceptions). For details, see Denz et. al (2023) doi:10.1002/sim.9681.
New features
- Added the
"iptw_cens"method to theadjustedsurv()function, which is a weighting based method that simultaneously allows adjustment for confounding via IPTW and adjustment for dependent censoring via IPCW.
Enhancements
- Added the
parallel_backendargument toadjustedsurv()andadjustedcif()to allow usage of FORK based parallel backends on Linux and MacOS, as suggested by @HUI950319 adjustedcif()withmethod="direct"now directly supports Fine & Gray models fit usingmets::cifregFG()(or other models fit usingmets::cifreg()) in theoutcome_modelargument. The adjusted CIFs are then estimated usingmets::survivalG(), which also provides influence function based standard errors, so that confidence intervals can be obtained without bootstrapping, as suggested by @HUI950319 (#59)
Bug Fixes
- Fixed a small bug that occurred in
adjustedsurv()withmethod="iptw_km", when one or more rows of the supplieddatacontained an event exactly at time 0. - Fixed a small bug where using the
timesargument inadjustedsurv()sometimes produced errors withmethod="km"when a value intimeswas beyondsurv = 0for one or more groups.
Refactored
- No longer exports the underlying
surv_()andcif_()functions, as they are not meant to be called outsideadjustedsurv()oradjustedcif().
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-10
- NOTE11 OK, 2 NOTE2026-09-08
- ERROR10 OK, 2 NOTE, 1 ERROR2026-09-07
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 47includes a package overview page
- Examples that run
- 91%40 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran) · 2 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 85%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/robindenz1/adjustedcurves on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-16 · The repository has a site deploy workflow
pkgdown site last built 2026-10-16
Show all practicesHide 2 practices
Dependencies
Installing adjustedCurves adds 24 packages (10 with compiled code, 6.7 MB of source tarballs). Heaviest: vctrs 1.0 MB, dplyr 902 KB, rlang 766 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.12.0Latest2026-10-07 · current release · diff ↗ ··
removed 24 exports
cif_aalen_johansen, cif_aiptw, cif_aiptw_pseudo, cif_direct, cif_direct_pseudo, cif_iptw, cif_iptw_pseudo, cif_matching, surv_aiptw, surv_aiptw_pseudo, surv_direct, surv_direct_pseudo, surv_emp_lik, surv_iptw_cox, surv_iptw_km, surv_iptw_pseudo, surv_iv_2SRIF, surv_km, surv_matching, surv_prox_aiptw, surv_prox_iptw, surv_strat_amato, surv_strat_cupples, surv_strat_nietolisted once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-06 15:36 UTC, so it stayed less than the time between readings. - RR 4.6.0 released · 2026-04-24
- 0.11.42026-02-05 · diff ↗
- 0.11.32025-07-13 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.11.22024-07-29 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.11.1
- 0.11.02024-02-13 · diff ↗ ·
added 7 exports
adjusted_curve_ratio, cif_tmle, plot_curve_ratio, surv_iv_2SRIF, surv_prox_aiptw, surv_prox_iptw, surv_tmle - RR 4.3.0 released · 2023-04-21
- 0.10.12023-04-20 · diff ↗
- 0.10.0
- 0.9.12022-11-22 · diff ↗
- 0.9.02022-09-22
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-09-22
- Total releases
- 10 / 4 yrs
- License
- GPL (>= 3) OSI
- Download size
- 922 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("adjustedCurves")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1002/sim.9681.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.