Skip to content

survSampleSize

Sample Size Calculator for Survival Endpoint Clinical Trials

v0.1.2 · Jun 21, 2026 · MIT + file LICENSE

Description

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.

Downloads

CRAN

205

Last 30 days

21626th

205

Last 90 days

205

Last year

autoCRAN

0

Last 7 days

0

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 9 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 22, 2026
ERROR 4 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Jun 21, 2026
ERROR r-release-macos-arm64

tests

Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(survSampleSize)
  > 
  > test_check("survSampleSize")
  Saving _problems/test-calculations-70.R
  [ FAIL 1 | WARN 0 | SKIP
...[truncated]...
3'): lrstat sample size matches the reference simulation case ──
  Expected `p$n_total` to equal 285.
  Differences:
    `actual`: 286.0
  `expected`: 285.0
  
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 32 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-macos-arm64

tests

Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(survSampleSize)
  > 
  > test_check("survSampleSize")
  Saving _problems/test-calculations-70.R
  [ FAIL 1 | WARN 0 | SKIP
...[truncated]...
3'): lrstat sample size matches the reference simulation case ──
  Expected `p$n_total` to equal 285.
  Differences:
    `actual`: 286.0
  `expected`: 285.0
  
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 32 ]
  Error:
  ! Test failures.
  Execution halted

Dependency Network

Dependencies Reverse dependencies lrstat powerSurvEpi shiny survSampleSize

Version History

2 tracked
updated 0.1.2 ← 0.1.1 diff Jun 21, 2026
new 0.1.1 Jun 20, 2026