Package: npsurvSS 1.1.0
npsurvSS: Sample Size and Power Calculation for Common Non-Parametric Tests in Survival Analysis
A number of statistical tests have been proposed to compare two survival curves, including the difference in (or ratio of) t-year survival, difference in (or ratio of) p-th percentile survival, difference in (or ratio of) restricted mean survival time, and the weighted log-rank test. Despite the multitude of options, the convention in survival studies is to assume proportional hazards and to use the unweighted log-rank test for design and analysis. This package provides sample size and power calculation for all of the above statistical tests with allowance for flexible accrual, censoring, and survival (eg. Weibull, piecewise-exponential, mixture cure). It is the companion R package to the paper by Yung and Liu (2020) <doi:10.1111/biom.13196>. Specific to the weighted log-rank test, users may specify which approximations they wish to use to estimate the large-sample mean and variance. The default option has been shown to provide substantial improvement over the conventional sample size and power equations based on Schoenfeld (1981) <doi:10.1093/biomet/68.1.316>.
Authors:
npsurvSS_1.1.0.tar.gz
npsurvSS_1.1.0.zip(r-4.5)npsurvSS_1.1.0.zip(r-4.4)npsurvSS_1.1.0.zip(r-4.3)
npsurvSS_1.1.0.tgz(r-4.4-any)npsurvSS_1.1.0.tgz(r-4.3-any)
npsurvSS_1.1.0.tar.gz(r-4.5-noble)npsurvSS_1.1.0.tar.gz(r-4.4-noble)
npsurvSS_1.1.0.tgz(r-4.4-emscripten)npsurvSS_1.1.0.tgz(r-4.3-emscripten)
npsurvSS.pdf |npsurvSS.html✨
npsurvSS/json (API)
# Install 'npsurvSS' in R: |
install.packages('npsurvSS', repos = c('https://godwinyyung.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/godwinyung/npsurvss/issues
Last updated 7 months agofrom:f86e7e8590. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 09 2024 |
R-4.5-win | OK | Nov 09 2024 |
R-4.5-linux | OK | Nov 09 2024 |
R-4.4-win | OK | Nov 09 2024 |
R-4.4-mac | OK | Nov 09 2024 |
R-4.3-win | OK | Nov 09 2024 |
R-4.3-mac | OK | Nov 09 2024 |
Exports:create_armcreate_arm_lachindaccrdlossdmaxUdminimaxUdsurvemaxUeminimaxUexp_durationexp_eventshlosshsurvpaccrper2hazplosspmaxUpminimaxUpower_two_armpsurvqaccrqlossqminimaxUqsurvraccrrlossrsurvsimulate_armsimulate_trialsize_two_arm
Dependencies:
Basic functionalities
Rendered frombasic_functionalities.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2019-08-16
Started: 2019-08-16
Example 1: Optimal randomization ratio
Rendered fromexample1.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-03-29
Started: 2019-08-16
Example 2: Delayed treatment effect
Rendered fromexample2.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-03-29
Started: 2019-08-16
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Create an 'arm' object | create_arm |
Create a 'lachin' object | create_arm_lachin |
Accrual | daccr paccr qaccr raccr |
Loss to follow-up | dloss hloss ploss qloss rloss |
Maximum observed time | dmaxU emaxU pmaxU |
Minimax observed time | dminimaxU eminimaxU pminimaxU qminimaxU |
Survival | dsurv hsurv psurv qsurv rsurv |
Expected duration | exp_duration |
Expected number of events | exp_events |
Convert exponential parameters | per2haz |
Power | power_two_arm |
Simulate complete data for a single arm | simulate_arm |
Simulate a clinical trial | simulate_trial |
Sample size | size_two_arm |