Performs combination tests and sample size calculation for fixed design with survival endpoints using combination tests under either proportional hazards or nonproportional hazards. The combination tests include maximum weighted logrank test and projection test. The sample size calculation procedure is very flexible, allowing for userdefined hazard ratio function and considering various trial conditions like staggered entry, dropout etc. 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) <arXiv:2110.03833>. 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 nonproportional hazards include Lakatos (1988) <doi:10.2307/2531910> and Cheng and He (2021) (under review).
Package details 


Author  Huan Cheng [aut, cre] (<https://orcid.org/0000000225527656>) 
Maintainer  Huan Cheng <hcheng1118@hotmail.com> 
License  GPL (>= 2) 
Version  1.0.0 
URL  https://github.com/hcheng99/nphPower 
Package repository  View on CRAN 
Installation 
Install the latest version of this package by entering the following in R:

Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.