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'.
| Version: | 1.2.3 |
| Depends: | R (≥ 4.1.0) |
| Imports: | Rcpp, nleqslv, boot, ggsurvfit, ggplot2, patchwork, scales, generics, lifecycle |
| LinkingTo: | Rcpp |
| Suggests: | survival, mets, numDeriv, modelsummary, gtsummary (≥ 2.6.1), broom, broom.helpers (≥ 1.20.0), cardx (≥ 0.3.4), glue, gt, flextable, DiagrammeR, knitr, rmarkdown, testthat (≥ 3.0.0), pkgdown |
| Published: | 2026-11-11 |
| DOI: | 10.32614/CRAN.package.cifmodeling |
| Author: | Shiro Tanaka |
| Maintainer: | Shiro Tanaka <gestimation at gmail.com> |
| BugReports: | https://github.com/gestimation/cifmodeling/issues |
| License: | MIT + file LICENSE |
| URL: | https://gestimation.github.io/cifmodeling/, https://github.com/gestimation/cifmodeling |
| NeedsCompilation: | yes |
| Citation: | cifmodeling citation info |
| Materials: | README, NEWS |
| CRAN checks: | cifmodeling results |
| Package source: | cifmodeling_1.2.3.tar.gz |
| Windows binaries: | r-devel: cifmodeling_1.0.0.zip, r-release: cifmodeling_1.0.0.zip, r-oldrel: cifmodeling_1.0.0.zip |
| macOS binaries: | r-release (arm64): cifmodeling_1.2.3.tgz, r-oldrel (arm64): cifmodeling_1.2.3.tgz, r-release (x86_64): cifmodeling_1.0.0.tgz, r-oldrel (x86_64): cifmodeling_1.0.0.tgz |
| Old sources: | cifmodeling archive |
Please use the canonical form https://CRAN.R-project.org/package=cifmodeling to link to this page.