CRAN/E | nphPower

nphPower

Sample Size Calculation under Non-Proportional Hazards

Installation

About

Performs combination tests and sample size calculation for fixed design with survival endpoints using combination tests under either proportional hazards or non-proportional hazards. The combination tests include maximum weighted log-rank test and projection test. The sample size calculation procedure is very flexible, allowing for user-defined hazard ratio function and considering various trial conditions like staggered entry, drop-out etc. The sample size calculation also applies to various cure models such as proportional hazards cure model, cure model with (random) delayed treatments effects. Trial simulation function is also provided to facilitate the empirical power calculation. The references for projection test and maximum weighted logrank test include Brendel et al. (2014) doi:10.1111/sjos.12059 and Cheng and He (2021) . The references for sample size calculation under proportional hazard include Schoenfeld (1981) doi:10.1093/biomet/68.1.316 and Freedman (1982) doi:10.1002/sim.4780010204. The references for calculation under non-proportional hazards include Lakatos (1988) doi:10.2307/2531910 and Cheng and He (2023) doi:10.1002/bimj.202100403.

github.com/hcheng99/nphPower

Key Metrics

Version 1.1.0
R ≥ 2.10
Published 2024-03-28 198 days ago
Needs compilation? no
License GPL-2
License GPL-3
CRAN checks nphPower results

Downloads

Yesterday 7 +133%
Last 7 days 32 -27%
Last 30 days 160 -34%
Last 90 days 883 +39%
Last 365 days 2.765 +42%

Maintainer

Maintainer

Huan Cheng

Authors

Huan Cheng

aut / cre

Material

README
NEWS
Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

nphPower archive

Depends

R ≥ 2.10

Imports

survival
stats
mvtnorm
MASS
zoo

Suggests

rmarkdown
knitr