TemporalHazard: Temporal Parametric Hazard Modeling

Provides native R implementations of the multiphase parametric hazard model of Blackstone, Naftel, and Turner (1986) <doi:10.1080/01621459.1986.10478314> with a focus on behavioral parity, transparent numerics, and reproducible validation against reference outputs from the original 'C'/'SAS' 'HAZARD' program, originally developed at the University of Alabama at Birmingham (UAB). The 'SAS'/'C' code and this R package are currently developed and maintained at The Cleveland Clinic Foundation, and the R code was wholly developed at The Cleveland Clinic Foundation. The generalized temporal decomposition family extends to longitudinal mixed-effects settings (Rajeswaran et al. 2018 <doi:10.1177/0962280215623583>). The package is intentionally implemented in pure R first; performance-critical paths may later be accelerated with 'Rcpp' without changing the public interface.

Version: 1.3.0
Depends: R (≥ 4.1.0)
Imports: survival
Suggests: covr, ggplot2, haven, knitr, lintr, numDeriv, pkgdown, quarto, roxygen2, rmarkdown, scales, testthat (≥ 3.2.0), withr
Published: 2026-11-08
DOI: 10.32614/CRAN.package.TemporalHazard
Author: John Ehrlinger [aut, cre, cph], R Core Team [cph] (seeding and inversion in .hzr_mt_normal()), Makoto Matsumoto [cph] (Mersenne Twister in .hzr_mt_normal()), Takuji Nishimura [cph] (Mersenne Twister in .hzr_mt_normal())
Maintainer: John Ehrlinger <john.ehrlinger at gmail.com>
BugReports: https://github.com/ehrlinger/TemporalHazard/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Copyright: See the file COPYRIGHTS in the installed package (inst/COPYRIGHTS in the source) for .hzr_mt_normal().
TemporalHazard copyright details
URL: https://ehrlinger.github.io/TemporalHazard/, https://github.com/ehrlinger/TemporalHazard
NeedsCompilation: no
SystemRequirements: Quarto command line tool (<https://github.com/quarto-dev/quarto-cli>)
Language: en-US
Citation: TemporalHazard citation info
Materials: README, NEWS
CRAN checks: TemporalHazard results

Documentation:

Reference manual: TemporalHazard.html , TemporalHazard.pdf
Vignettes: Package Architecture (source, R code)
Complete Clinical Analysis Walkthrough (source, R code)
Fitting Hazard Models (source, R code)
Getting Started with TemporalHazard (source, R code)
Inference & Diagnostics (source, R code)
Mathematical Foundations of TemporalHazard (source, R code)
Prediction & Visualization (source, R code)
Migrating from SAS HAZARD to TemporalHazard (source, R code)

Downloads:

Package source: TemporalHazard_1.3.0.tar.gz
Windows binaries: r-devel: TemporalHazard_1.1.0.zip, r-release: TemporalHazard_1.3.0.zip, r-oldrel: TemporalHazard_1.1.0.zip
macOS binaries: r-release (arm64): TemporalHazard_1.3.0.tgz, r-oldrel (arm64): TemporalHazard_1.3.0.tgz, r-release (x86_64): TemporalHazard_1.3.0.tgz, r-oldrel (x86_64): TemporalHazard_1.1.0.tgz
Old sources: TemporalHazard archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=TemporalHazard to link to this page.