Skip to content

lrstat

Power and Sample Size Calculation for Non-Proportional Hazards and Beyond

v0.3.0 · Mar 7, 2026 · GPL (>= 2)

Description

Performs power and sample size calculation for non-proportional hazards model using the Fleming-Harrington family of weighted log-rank tests. The sequentially calculated log-rank test score statistics are assumed to have independent increments as characterized in Anastasios A. Tsiatis (1982) <doi:10.1080/01621459.1982.10477898>. The mean and variance of log-rank test score statistics are calculated based on Kaifeng Lu (2021) <doi:10.1002/pst.2069>. The boundary crossing probabilities are calculated using the recursive integration algorithm described in Christopher Jennison and Bruce W. Turnbull (2000, ISBN:0849303168). The package can also be used for continuous, binary, and count data. For continuous data, it can handle missing data through mixed-model for repeated measures (MMRM). In crossover designs, it can estimate direct treatment effects while accounting for carryover effects. For binary data, it can design Simon's 2-stage, modified toxicity probability-2 (mTPI-2), and Bayesian optimal interval (BOIN) trials. For count data, it can design group sequential trials for negative binomial endpoints with censoring. Additionally, it facilitates group sequential equivalence trials for all supported data types. Moreover, it can design adaptive group sequential trials for changes in sample size, error spending function, number and spacing or future looks. Finally, it offers various options for adjusted p-values, including graphical and gatekeeping procedures.

Downloads

864

Last 30 days

4172nd

1.8K

Last 90 days

9.3K

Last year

Trend: +63.3% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 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-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
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 details (3 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is 48.1Mb
  sub-directories of 1Mb or more:
    help   1.1Mb
    libs  45.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 49.3Mb
  sub-directories of 1Mb or more:
    help   1.1Mb
    libs  46.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.0Mb
  sub-directories of 1Mb or more:
    help   1.1Mb
    libs   4.6Mb

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 48.1Mb
  sub-directories of 1Mb or more:
    help   1.1Mb
    libs  45.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 64.0Mb
  sub-directories of 1Mb or more:
    help   1.1Mb
    libs  61.7Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.0Mb
  sub-directories of 1Mb or more:
    help   1.1Mb
    libs   4.6Mb

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies Rcpp RcppParallel rlang mvtnorm lpSolve ggplot2 shiny eventPred graphicalMCP lrstat

Version History

new 0.3.0 Mar 10, 2026
updated 0.3.0 ← 0.2.15 diff Mar 6, 2026
updated 0.2.15 ← 0.2.14 diff Jul 13, 2025
updated 0.2.14 ← 0.2.13 diff Jun 8, 2025
updated 0.2.13 ← 0.2.12 diff Mar 19, 2025
updated 0.2.12 ← 0.2.11 diff Jan 16, 2025
updated 0.2.11 ← 0.2.10 diff Dec 3, 2024
updated 0.2.10 ← 0.2.9 diff Oct 17, 2024
updated 0.2.9 ← 0.2.8 diff Jun 22, 2024
updated 0.2.8 ← 0.2.7 diff Jun 18, 2024
updated 0.2.7 ← 0.2.6 diff Jun 12, 2024
updated 0.2.6 ← 0.2.5 diff May 10, 2024
updated 0.2.5 ← 0.2.4 diff Apr 21, 2024
updated 0.2.4 ← 0.2.3 diff Mar 18, 2024
updated 0.2.3 ← 0.2.2 diff Feb 26, 2024
updated 0.2.2 ← 0.2.1 diff Dec 21, 2023
updated 0.2.1 ← 0.2.0 diff Nov 27, 2023
updated 0.2.0 ← 0.1.15 diff Sep 30, 2023
updated 0.1.15 ← 0.1.14 diff Aug 16, 2023
updated 0.1.14 ← 0.1.13 diff Jun 8, 2023