Skip to content

adjustedCurves

0.12.0Package record

Confounder-Adjusted Survival Curves and Cumulative Incidence Functions

0packages dependsuggested by 1
10.6Kdownloads / year
96.4%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.12.0

New features

  • Added the "iptw_cens" method to the adjustedsurv() 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_backend argument to adjustedsurv() and adjustedcif() to allow usage of FORK based parallel backends on Linux and MacOS, as suggested by @HUI950319
  • adjustedcif() with method="direct" now directly supports Fine & Gray models fit using mets::cifregFG() (or other models fit using mets::cifreg()) in the outcome_model argument. The adjusted CIFs are then estimated using mets::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() with method="iptw_km", when one or more rows of the supplied data contained an event exactly at time 0.
  • Fixed a small bug where using the times argument in adjustedsurv() sometimes produced errors with method="km" when a value in times was beyond surv = 0 for one or more groups.

Refactored

  • No longer exports the underlying surv_() and cif_() functions, as they are not meant to be called outside adjustedsurv() or adjustedcif().

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 10.8 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.12.0
READMEYes · 362 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.12.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
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

10.6K
CRAN downloads in the past year
Rank #3,644 · ~29/day · ~884/mo
Daily download trend is not available in this view yet.
1.2K30 days
2.7K90 days
10.6K1 year
Compare downloads with other packages →
Also on156 r2u33 autocran1.1K conda_forge

Repository

47Stars
8Forks
4Open issues
0Open PRs
10Releases
252Commits
4Commit identities
adjustedsurvival-curvescumulative-incidenceconfidence-intervals
License file reads as GPL-3.0 · 252 commits · Last activity 2026-10-16 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-10-21 · 402026-07-07 · 47
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-16 · The repository has a site deploy workflow

pkgdown site last built 2026-10-16

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 2 practices
Research and citation (1)
codemeta.json
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
28 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.9.0 (2022)
Releases (10)

Pick two releases to compare their code metrics.

  • 0.12.0Latest
    record
    2026-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_nieto
    ·
    listed 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.
  • R
    R 4.6.0 released · 2026-04-24
  • 0.11.4
    record
    2026-02-05 · diff ↗
  • 0.11.3
    record
    2025-07-13 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.11.2
    record
    2024-07-29 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.11.1
    record
    2024-04-10 · diff ↗ ·
    removed 2 exports
    cif_tmle, surv_tmle
  • 0.11.0
    record
    2024-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
  • R
    R 4.3.0 released · 2023-04-21
  • 0.10.1
    record
    2023-04-20 · diff ↗
  • 0.10.0
    record
    2023-02-16 · diff ↗ ·
    removed 3 exports
    cif_tmle, surv_ostmle, surv_tmle
  • 0.9.1
    record
    2022-11-22 · diff ↗
  • 0.9.0
    record
    2022-09-22
  • R
    R 4.2.0 released · 2022-04-22
Across CRAN, the median accepted release of the past year spent 23 hours in the queue, 90% under 11 days.How queue time is measured

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for adjustedCurves version 0.12.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy