Fitting Flexible Smooth-in-Time Hazards and Risk Functions via Logistic and Multinomial Regression
Overview
Fit flexible and fully parametric hazard regression models to survival data with single event type or multiple competing causes via logistic and multinomial regression. Our formulation allows for arbitrary functional forms of time and its interactions with other predictors for time-dependent hazards and hazard ratios. From the fitted hazard model, we provide functions to readily calculate and plot cumulative incidence and survival curves for a given covariate profile. This approach accommodates any log-linear hazard function of prognostic time, treatment, and covariates, and readily allows for non-proportionality. We also provide a plot method for visualizing incidence density via population time plots. Based on the case-base sampling approach of Hanley and Miettinen (2009) DOI:10.2202/1557-4679.1125, Saarela and Arjas (2015) DOI:10.1111/sjos.12125, and Saarela (2015) DOI:10.1007/s10985-015-9352-x.
- Fix CRAN check errors caused by
visreg3.0's breaking argument rename:print.condis nowprint_condinplot.singleEventCB(type = "hazard"). visregis now required to be>= 3.0.0inSuggests.- Updated the "Plot Hazards and Hazard Ratios" vignette to drop the now-removed
ggargument (visreg3.0 always returns aggplotobject) and to remove the obsoletevisreg2dperspective/image plot example.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-10
- ERROR11 OK, 2 ERROR2026-07-29
- OK14 OK2026-03-10
Documentation
- Help pages
- 15
- Examples that run
- 100%11 run in a plain check (3 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 47%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
14 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/sahirbhatnagar/casebase on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-03 · The repository has a site deploy workflow
pkgdown site last built 2026-09-03
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-09-03Pull request it wrote: opened by a project memberCommits: at least 6 crediting it in the message
- Claude Sonnet 56 commits · Sep 2026
Dependencies
Installing casebase adds 19 packages (9 with compiled code, 21 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, VGAM 1.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.10.7Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.10.62024-08-18 · diff ↗
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2024-04-10
- 0.10.52024-04-10 · diff ↗
- archivedRemoved from CRAN2024-04-04issues were not corrected in time
- 0.10.42024-02-02 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2022-11-16
- 0.10.32022-11-16 · diff ↗
- archivedRemoved from CRAN2022-11-11issues were not corrected in time
- RR 4.2.0 released · 2022-04-22
- 0.10.12021-10-20 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 7 earlier eventsHide 7 earlier events
Package metadata
- First published
- 2017-04-29
- Total releases
- 9 / 9 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 293 KB / 6 files
- Download size
- 3.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("casebase")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.