Package: nphPower 1.1.0
nphPower: Sample Size Calculation under Non-Proportional Hazards
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) <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 non-proportional hazards include Lakatos (1988) <doi:10.2307/2531910> and Cheng and He (2023) (doi:10.1002/bimj.202100403).
Authors:
nphPower_1.1.0.tar.gz
nphPower_1.1.0.zip(r-4.5)nphPower_1.1.0.zip(r-4.4)nphPower_1.1.0.zip(r-4.3)
nphPower_1.1.0.tgz(r-4.4-any)nphPower_1.1.0.tgz(r-4.3-any)
nphPower_1.1.0.tar.gz(r-4.5-noble)nphPower_1.1.0.tar.gz(r-4.4-noble)
nphPower_1.1.0.tgz(r-4.4-emscripten)nphPower_1.1.0.tgz(r-4.3-emscripten)
nphPower.pdf |nphPower.html✨
nphPower/json (API)
NEWS
# Install 'nphPower' in R: |
install.packages('nphPower', repos = c('https://hcheng99.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hcheng99/nphpower/issues
- lung - Lung cancer data set
Last updated 8 months agofrom:6ef23a257a. Checks:OK: 3 NOTE: 4. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 20 2024 |
R-4.5-win | NOTE | Nov 20 2024 |
R-4.5-linux | NOTE | Nov 20 2024 |
R-4.4-win | NOTE | Nov 20 2024 |
R-4.4-mac | NOTE | Nov 20 2024 |
R-4.3-win | OK | Nov 20 2024 |
R-4.3-mac | OK | Nov 20 2024 |
Exports:cal_eventcureHRevalfupgen.wgtMaxLRtestn2pwr.NPHplotHazSurvprojection.testpwr2n.LRpwr2n.NPHsimu.trial
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Event Rate Calculation | cal_event |
Control hazard and hazard ratio generation function | cureHR |
Visualization of the Relationship between Follow-up and Sample Size | evalfup |
Weight Function Generation | gen.wgt |
Lung cancer data set | lung |
Maximum Weighted Logrank Test | MaxLRtest |
Power Calculation with Combination Test | n2pwr.NPH |
Graphical Display of Weight Functions | plot.MaxLR |
Graphical Display of Design Parameters in Sample Size Calculation | plot.NPHpwr |
Graphic Display of Hazard and Survival Function | plotHazSurv |
Projection test | projection.test |
Sample Size Calculation under Proportional Hazards | phsize pwr2n.LR |
Sample Size Calculation with Combination Test | pwr2n.NPH |
Simulate Survival Trial Data | simu.trial |
Summary of the 'pwr2n.NPH' function | summary.NPHpwr |