Package: cifmodeling 1.2.1

cifmodeling: Visualization and Polytomous Modeling of Survival and Competing Risks

A publication-ready toolkit for modern survival and competing risks analysis with a minimal, formula-based interface. Both nonparametric estimation and direct polytomous regression of cumulative incidence functions (CIFs) are supported. The main functions 'cifcurve()', 'cifplot()', and 'cifpanel()' estimate survival and CIF curves and produce high-quality graphics with risk tables, censoring and competing-risk marks, and multi-panel or inset layouts built on 'ggplot2' and 'ggsurvfit'. The modeling function 'polyreg()' performs direct polytomous regression for coherent joint modeling of all cause-specific CIFs to estimate risk ratios, odds ratios, or subdistribution hazard ratios at user-specified time points. The function 'ciftest()' provides log-rank, Gray, robust score, augmented score, and multiple-direction tests for survival and competing-risk outcomes. All core functions adopt a formula-and-data syntax and return tidy and extensible outputs that integrate smoothly with 'modelsummary', 'broom', and the broader 'tidyverse' ecosystem. Key numerical routines are implemented in C++ via 'Rcpp'.

Authors:Shiro Tanaka [aut, cre, cph], Shigetaka Kobari [ctb], Chisato Honda [ctb]

cifmodeling_1.2.1.tar.gz
cifmodeling_1.2.1.zip(r-4.7-x86_64)cifmodeling_1.2.1.zip(r-4.7-arm64)cifmodeling_1.2.1.zip(r-4.6-x86_64)cifmodeling_1.2.1.zip(r-4.6-arm64)cifmodeling_1.2.1.zip(r-4.5-x86_64)
cifmodeling_1.2.1.tgz(r-4.6-x86_64)cifmodeling_1.2.1.tgz(r-4.6-arm64)cifmodeling_1.2.1.tgz(r-4.5-x86_64)cifmodeling_1.2.1.tgz(r-4.5-arm64)
cifmodeling_1.2.1.tar.gz(r-4.7-arm64)cifmodeling_1.2.1.tar.gz(r-4.7-x86_64)cifmodeling_1.2.1.tar.gz(r-4.6-arm64)cifmodeling_1.2.1.tar.gz(r-4.6-x86_64)
cifmodeling_1.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cifmodeling/json (API)

# Install 'cifmodeling' in R:
install.packages('cifmodeling', repos = c('https://gestimation.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gestimation/cifmodeling/issues

Pkgdown/docs site:https://gestimation.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

6.77 score 3 stars 31 scripts 352 downloads 10 exports 39 dependencies

Last updated from:f0e132702d. Checks:13 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE208
linux-devel-x86_64NOTE219
source / vignettesOK453
linux-release-arm64NOTE245
linux-release-x86_64NOTE236
macos-release-arm64NOTE259
macos-release-x86_64NOTE517
macos-oldrel-arm64NOTE244
macos-oldrel-x86_64NOTE495
windows-devel-arm64NOTE453
windows-devel-x86_64NOTE267
windows-release-arm64NOTE447
windows-release-x86_64NOTE218
windows-oldrel-x86_64NOTE217
wasm-releaseOK137

Exports:cifcurvecifflowchartcifpanelcifplotciftestciftest_mdireffect_label.polyregEventextract_time_to_eventpolyreg

Dependencies:backportsbootbroomclicpp11dplyrfarvergenericsggplot2ggsurvfitgluegtableisobandlabelinglatticelifecyclemagrittrMatrixnleqslvpatchworkpillarpkgconfigpurrrR6RColorBrewerRcpprlangS7scalesstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

Computational formulas in cifcurve()
Formulas for the Kaplan–Meier estimator | Formulas for the Aalen-Johansen estimator | Confidence interval options

Last update: 2026-09-18
Started: 2025-12-05

Overview
Quick start | Why cifmodeling? | Tools for survival and competing risks analysis | Position in the survival ecosystem | Installation | Quality control

Last update: 2026-09-18
Started: 2025-12-05

Full lists of arguments
cifcurve() | cifplot() | cifpanel() | polyreg()

Last update: 2026-06-30
Started: 2025-12-05

Gallery
Default for survival data | Default for competing risks data | Visual elements | Risk ratio label | Panel mode | Zoomed-in-view | Font, style and palette | Axis and label | Proportional hazards check by a log-log plot

Last update: 2026-06-25
Started: 2025-12-05

Additional information
Model formula and outcome.type in cifcurve() and polyreg() | Event coding conventions incifmodeling and CDISC ADaM ADTTE | Key arguments of msummary() that are helpful when reporting polyreg() results | Processing pipeline of cifcurve() | Processing pipeline of polyreg() | Reproducibility and conventions for polyreg()

Last update: 2025-12-05
Started: 2025-12-05

Direct polytomous regression
Why direct modeling of CIFs? | Coherent modeling of CIFs using polytomous log odds products | 1. Nuisance model | 2. Effect measures and time points | 3. Censoring adjustment | Estimator and confidence intervals | Return

Last update: 2025-12-05
Started: 2025-12-05

Examples
Example 1. Unadjusted competing risks analysis | Example 2. Survival analysis | Example 3. Adjusted competing risks analysis | Example 4. Description of cumulative incidence of competing events

Last update: 2025-12-05
Started: 2025-12-05