Skip to content

survSampleSize

0.1.2Package record

Sample Size Calculator for Survival Endpoint Clinical Trials

0packages depend
1.1Kdownloads / year
62.7%test coverage
13/13flavors OK

Overview

About

An interactive 'shiny' application for sample size and power calculation under general conditions for clinical trials with survival endpoints. Implements the weighted log-rank method of Lu (2021) doi:10.1002/pst.2069 via the 'lrstat' package, supporting non-proportional hazards, delayed treatment effects, unequal allocation and dropout, as well as the classic method of Freedman (1982) doi:10.1002/sim.4780010204 via the 'powerSurvEpi' package. Results are presented interactively with survival curves and event-prediction timelines.

Changes in 0.1.2
  • Fixed a platform-specific rounding difference in the 'lrstat' sample size test that caused a failure on macOS (ARM64). The test now accepts the correct result on both Windows and macOS.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK9 OK2026-06-22
  • ERROR4 OK, 2 ERROR2026-06-21
Advisories

none known

Documentation

In release 0.1.2
READMEYes · 274 wordsVignettesYes · 1 · staticNEWSYes · 100% structured · mentions 0.1.2Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
1
Examples that run
100%1 run in a plain check (under a condition)
Exported functions with examples
100%
Documented parameters
not tracked
Return-value docs
100%
Help pages citing references
0%

Downloads

1.1K
CRAN downloads in the past year
Rank #15,762 · ~3/day · ~96/mo
Daily download trend is not available in this view yet.
30230 days
77590 days
1.1K1 year
Compare downloads with other packages →
Also on22 r2u1 autocran

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing survSampleSize adds 75 packages (41 with compiled code, 85 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (0)
none
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.1.1 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.1.2Latest
    record
    2026-06-21 · current release · diff ↗
  • 0.1.1
    record
    2026-06-20
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-06-20
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Download size
37 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("survSampleSize")
Jiang, H. (2026). survSampleSize: Sample Size Calculator for Survival Endpoint Clinical Trials (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.survSampleSize

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 survSampleSize version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, 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