Skip to content

npsurvSS

1.1.0

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

1packages depend
7.8Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Godwin YungFirst published 2019-12-182 releasesCRAN page ↗GitHub ↗

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: 5.3 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
88%
Return-value docs
100%
References docs
29%

Downloads

7.8K
CRAN downloads in the past year
Rank #6,735 · ~21/day · ~652/mo
Daily download trend is not available in this view yet.
46630 days
1.4K90 days
7.8K1 year
Compare downloads with other packages →
Also on188 r2u29 autocran

Repository

Repository
1Stars
1Forks
1Open issues
0Open PRs
0Releases
11Commits
3Contributors
11 commits · Last activity 2024-04-13

Stars over time

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

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/godwinyyung/npsurvss on 2026-07-30.

CRAN release process (1)
CRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
Imports (2)
statsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.0Latest
    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
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →