Skip to content

npsurvSS

1.1.0Package record

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

1packages depend
7.2Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Install

Health

CRAN checks
13OK
Slowest check: 4.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMENoVignettesYes · 3 · dynamicNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
14
Examples that run
100%9 run in a plain check
Exported functions with examples
64%
Documented parameters
88%
Return-value docs
100%
Help pages citing references
29%

Downloads

7.2K
CRAN downloads in the past year
Rank #5,754 · ~20/day · ~598/mo
Daily download trend is not available in this view yet.
63930 days
1.4K90 days
7.2K1 year
Compare downloads with other packages →
Also on293 r2u8 autocran

Repository

1Stars
1Forks
1Open issues
0Open PRs
0Releases
11Commits
3Commit identities
11 commits · Last activity 2024-04-13
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
432
Median days to close, 50 most recently updated closed PRs
17

Stars over time

2022-08-21 · 12026-07-07 · 1
PracticesBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/godwinyyung/npsurvss on 2026-10-22.

CRAN release process (1)
CRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing npsurvSS adds no packages beyond those that come with R.

Depends (1)
R >= 3.4.0
Imports (2)
statsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (2)
Author, Maintainer since 1.0.1 (2019)
Author
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.0Latest
    record
    2024-05-09 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.1
    record
    2019-12-18
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-12-18
Total releases
2 / 7 yrs
License
GPL-2 OSI
Minimum R
≥ 3.4.0
Download size
283 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("npsurvSS")
Yung, G., & Liu, Y. (2024). npsurvSS: Sample Size and Power Calculation for Common Non-Parametric Tests in Survival Analysis (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.npsurvSS

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for npsurvSS version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy