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

Package details

AuthorShiro Tanaka [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-6817-5235>), Shigetaka Kobari [ctb], Chisato Honda [ctb]
MaintainerShiro Tanaka <gestimation@gmail.com>
LicenseMIT + file LICENSE
Version1.2.3
URL https://gestimation.github.io/cifmodeling/  https://github.com/gestimation/cifmodeling 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("cifmodeling")

Try the cifmodeling package in your browser

Any scripts or data that you put into this service are public.

cifmodeling documentation built on Nov. 11, 2026, 9:06 a.m.