nph: Planning and Analysing Survival Studies under Non-Proportional Hazards

Piecewise constant hazard functions are used to flexibly model survival distributions with non-proportional hazards and to simulate data from the specified distributions. Also, a function to calculate weighted log-rank tests for the comparison of two hazard functions is included. Finally, a function to calculate a test using the maximum of a set of test statistics from weighted log-rank tests is provided. This test utilizes the asymptotic multivariate normal joint distribution of the separate test statistics. The correlation is estimated from the data.

Version: 2.0
Depends: R (≥ 3.3.0)
Imports: stats, graphics, mvtnorm, ggplot2
Suggests: knitr, shiny, shinycssloaders, formatR, styler, rmarkdown
Published: 2020-01-10
Author: Robin Ristl [aut, cre], Nicolas Ballarini [ctb]
Maintainer: Robin Ristl <robin.ristl at>
License: GPL-3
NeedsCompilation: no
CRAN checks: nph results


Reference manual: nph.pdf
Vignettes: Examples of non-proportional hazards in clinical trials with nph
Introduction to nph and Usage Instructions
Package source: nph_2.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release: nph_2.0.tgz, r-oldrel: nph_2.0.tgz
Old sources: nph archive


Please use the canonical form to link to this page.