Skip to content

adjustedCurves

Confounder-Adjusted Survival Curves and Cumulative Incidence Functions

v0.11.4 · Feb 5, 2026 · GPL (>= 3)

Description

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>.

Downloads

CRAN

797

Last 30 days

4056th

2.2K

Last 90 days

10.9K

Last year

Trend: +17.2% (30d vs prior 30d)

r2u CRAN

5

Last 30 days

39

Last 90 days

225

Last year

Trend: -72.2% (30d vs prior 30d)

autoCRAN

9

Last 7 days

75

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘adjustedCurves-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: adjusted_curve_test
> ### Title: Test if there is a difference between two Confounder-Adjusted

...[truncated]...
ion
Failed with error:  ‘there is no package called ‘riskRegression’’
Error in loadNamespace(x) : there is no package called ‘riskRegression’
Calls: adjustedsurv ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

30,809

Files

327

Compiled share

0%

Has compiled src

No

Language breakdown

R 9,246 (30%)Tests 14,369 (46.6%)Docs 6,068 (19.7%)Vignettes 1,126 (3.7%)

API

Exported functions

41

Internal functions

117

Recent export changes

v0.9.0+39 CSC_MI, FGR_MI, adjusted_curve_diff +36 more

Testing & CI

Has tests

Yes

Test-to-code ratio

2.66

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

28.6%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2022-09-22

Latest release

2026-02-05

Avg cadence

98 days

Cold removal rate

100%

Dep drift

1

LOC over versions

v0.9.0: 27,803 LOCv0.9.1: 27,807 LOCv0.10.0: 25,724 LOCv0.10.1: 25,735 LOCv0.11.0: 29,346 LOCv0.11.1: 30,736 LOCv0.11.2: 30,817 LOCv0.11.3: 30,563 LOCv0.11.4: 30,809 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies R.utils doParallel doRNG dplyr foreach rlang survival weightedsurv adjustedCurves

Version History

10 tracked
new 0.11.4 Mar 10, 2026
updated 0.11.4 ← 0.11.3 diff Feb 4, 2026
updated 0.11.3 ← 0.11.2 diff Jul 12, 2025
updated 0.11.2 ← 0.11.1 diff Jul 28, 2024
updated 0.11.1 ← 0.11.0 diff Apr 9, 2024
updated 0.11.0 ← 0.10.1 diff Feb 12, 2024
updated 0.10.1 ← 0.10.0 diff Apr 19, 2023
updated 0.10.0 ← 0.9.1 diff Feb 15, 2023
updated 0.9.1 ← 0.9.0 diff Nov 21, 2022
new 0.9.0 Sep 21, 2022