CRAN/E | nph

nph

Planning and Analysing Survival Studies under Non-Proportional Hazards

Installation

About

Piecewise constant hazard functions are used to flexibly model survival distributions with non-proportional hazards and to simulate data from the specified distributions. A function to calculate weighted log-rank tests for the comparison of two hazard functions is included. Also, a function to calculate a test using the maximum of a set of test statistics from weighted log-rank tests (MaxCombo test) is provided. This test utilizes the asymptotic multivariate normal joint distribution of the separate test statistics. The correlation is estimated from the data. These methods are described in Ristl et al. (2021) doi:10.1002/pst.2062. Finally, a function is provided for the estimation and inferential statistics of various parameters that quantify the difference between two survival curves. Eligible parameters are differences in survival probabilities, log survival probabilities, complementary log log (cloglog) transformed survival probabilities, quantiles of the survival functions, log transformed quantiles, restricted mean survival times, as well as an average hazard ratio, the Cox model score statistic (logrank statistic), and the Cox-model hazard ratio. Adjustments for multiple testing and simultaneous confidence intervals are calculated using a multivariate normal approximation to the set of selected parameters.

Citation nph citation info

Key Metrics

Version 2.1
R ≥ 3.5.0
Published 2022-05-16 704 days ago
Needs compilation? no
License GPL-3
CRAN checks nph results

Downloads

Yesterday 12 0%
Last 7 days 39 -44%
Last 30 days 240 -19%
Last 90 days 969 +22%
Last 365 days 4.048 -6%

Maintainer

Maintainer

Robin Ristl

robin.ristl@meduniwien.ac.at

Authors

Robin Ristl

aut / cre

Nicolas Ballarini

ctb

Material

Reference manual
Package source

Vignettes

Examples of non-proportional hazards in clinical trials with nph
Introduction to nph and Usage Instructions

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

nph archive

Depends

R ≥ 3.5.0

Imports

stats
graphics
mvtnorm
ggplot2
muhaz
survival
multcomp

Suggests

knitr
shiny
shinycssloaders
formatR
styler
rmarkdown