survSampleSize
Sample Size Calculator for Survival Endpoint Clinical Trials
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
205
Last 30 days
21626th
205
Last 90 days
205
Last year
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
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
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
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