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

534

Last 30 days

7037th

534

Last 90 days

534

Last year

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 (14 non-OK)
OK 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

*


            
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
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

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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 9, 2026