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.7-any)npsurvSS_1.1.0.zip(r-4.6-any)npsurvSS_1.1.0.zip(r-4.5-any)
npsurvSS_1.1.0.tgz(r-4.6-any)npsurvSS_1.1.0.tgz(r-4.5-any)
npsurvSS_1.1.0.tar.gz(r-4.7-any)npsurvSS_1.1.0.tar.gz(r-4.6-any)
npsurvSS_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
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 from:f86e7e8590. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 114 | ||
| source / vignettes | OK | 229 | ||
| linux-release | OK | 103 | ||
| macos-release | OK | 134 | ||
| macos-oldrel | OK | 171 | ||
| windows-devel | OK | 68 | ||
| windows-release | OK | 63 | ||
| windows-oldrel | OK | 51 | ||
| wasm-release | OK | 78 |
Exports:create_armcreate_arm_lachindaccrdlossdmaxUdminimaxUdsurvemaxUeminimaxUexp_durationexp_eventshlosshsurvpaccrper2hazplosspmaxUpminimaxUpower_two_armpsurvqaccrqlossqminimaxUqsurvraccrrlossrsurvsimulate_armsimulate_trialsize_two_arm
Dependencies:
Last update: 2024-03-29
Started: 2019-08-16
Last update: 2024-03-29
Started: 2019-08-16
Last update: 2019-08-16
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 |
