npsurvSS

Sample Size and Power Calculation for Common Non-Parametric Tests in Survival Analysis

CRAN Package

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.

  • Version1.1.0
  • R versionunknown
  • LicenseGPL-2
  • Needs compilation?No
  • Last release05/08/2024

Documentation


Team


Insights

Last 30 days

This package has been downloaded 479 times in the last 30 days. Now we're getting somewhere! Enough downloads to populate a lively group chat. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 21 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
10 downloadsFeb 16, 2025
8 downloadsFeb 17, 2025
14 downloadsFeb 18, 2025
16 downloadsFeb 19, 2025
27 downloadsFeb 20, 2025
15 downloadsFeb 21, 2025
15 downloadsFeb 22, 2025
8 downloadsFeb 23, 2025
8 downloadsFeb 24, 2025
23 downloadsFeb 25, 2025
12 downloadsFeb 26, 2025
23 downloadsFeb 27, 2025
13 downloadsFeb 28, 2025
14 downloadsMar 1, 2025
15 downloadsMar 2, 2025
15 downloadsMar 3, 2025
22 downloadsMar 4, 2025
25 downloadsMar 5, 2025
18 downloadsMar 6, 2025
10 downloadsMar 7, 2025
11 downloadsMar 8, 2025
11 downloadsMar 9, 2025
25 downloadsMar 10, 2025
28 downloadsMar 11, 2025
16 downloadsMar 12, 2025
29 downloadsMar 13, 2025
11 downloadsMar 14, 2025
10 downloadsMar 15, 2025
6 downloadsMar 16, 2025
21 downloadsMar 17, 2025
0 downloadsMar 18, 2025
0 downloadsMar 19, 2025
0 downloadsMar 20, 2025
0 downloadsMar 21, 2025
0 downloadsMar 22, 2025
6
29

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 5,632 times in the last 365 days. A solid achievement! Enough downloads to get noticed at department meetings. The day with the most downloads was May 12, 2024 with 53 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Suggests6 packages
  • Reverse Imports1 package