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:Godwin Yung [aut, cre], Yi Liu [aut]

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'))

Peer review:

Bug tracker:https://github.com/godwinyung/npsurvss/issues

On CRAN:

30 exports 1 stars 1.35 score 0 dependencies 1 dependents 7 scripts 520 downloads

Last updated 5 months agofrom:f86e7e8590. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 10 2024
R-4.5-winOKSep 10 2024
R-4.5-linuxOKSep 10 2024
R-4.4-winOKSep 10 2024
R-4.4-macOKSep 10 2024
R-4.3-winOKSep 10 2024
R-4.3-macOKSep 10 2024

Exports:create_armcreate_arm_lachindaccrdlossdmaxUdminimaxUdsurvemaxUeminimaxUexp_durationexp_eventshlosshsurvpaccrper2hazplosspmaxUpminimaxUpower_two_armpsurvqaccrqlossqminimaxUqsurvraccrrlossrsurvsimulate_armsimulate_trialsize_two_arm

Dependencies:

Basic functionalities

Rendered frombasic_functionalities.Rmdusingknitr::rmarkdownon Sep 10 2024.

Last update: 2019-08-16
Started: 2019-08-16

Example 1: Optimal randomization ratio

Rendered fromexample1.Rmdusingknitr::rmarkdownon Sep 10 2024.

Last update: 2024-03-29
Started: 2019-08-16

Example 2: Delayed treatment effect

Rendered fromexample2.Rmdusingknitr::rmarkdownon Sep 10 2024.

Last update: 2024-03-29
Started: 2019-08-16

Readme and manuals

Help Manual

Help pageTopics
Create an 'arm' objectcreate_arm
Create a 'lachin' objectcreate_arm_lachin
Accrualdaccr paccr qaccr raccr
Loss to follow-updloss hloss ploss qloss rloss
Maximum observed timedmaxU emaxU pmaxU
Minimax observed timedminimaxU eminimaxU pminimaxU qminimaxU
Survivaldsurv hsurv psurv qsurv rsurv
Expected durationexp_duration
Expected number of eventsexp_events
Convert exponential parametersper2haz
Powerpower_two_arm
Simulate complete data for a single armsimulate_arm
Simulate a clinical trialsimulate_trial
Sample sizesize_two_arm