Other packages > Find by keyword >

lrstat  

Power and Sample Size Calculation for Non-Proportional Hazards and Beyond
View on CRAN: Click here


Download and install lrstat package within the R console
Install from CRAN:
install.packages("lrstat")

Install from Github:
library("remotes")
install_github("cran/lrstat")

Install by package version:
library("remotes")
install_version("lrstat", "0.2.13")



Attach the package and use:
library("lrstat")
Maintained by
Kaifeng Lu
[Scholar Profile | Author Map]
First Published: 2021-12-17
Latest Update: 2023-08-17
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) . The mean and variance of log-rank test score statistics are calculated based on Kaifeng Lu (2021) . 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.
How to cite:
Kaifeng Lu (2021). lrstat: Power and Sample Size Calculation for Non-Proportional Hazards and Beyond. R package version 0.2.13, https://cran.r-project.org/web/packages/lrstat. Accessed 29 Apr. 2025.
Previous versions and publish date:
0.1.0 (2021-12-17 10:10), 0.1.1 (2021-12-23 09:20), 0.1.2 (2022-02-02 10:10), 0.1.3 (2022-02-09 13:20), 0.1.4 (2022-06-07 22:30), 0.1.5 (2022-06-09 10:10), 0.1.6 (2022-08-09 17:00), 0.1.7 (2022-08-29 09:40), 0.1.8 (2022-09-11 21:12), 0.1.9 (2022-10-09 21:20), 0.1.10 (2022-10-25 18:32), 0.1.11 (2023-02-09 19:00), 0.1.12 (2023-04-30 21:50), 0.1.13 (2023-05-21 00:10), 0.1.14 (2023-06-09 06:10), 0.1.15 (2023-08-17 20:42), 0.2.0 (2023-10-01 18:40), 0.2.1 (2023-11-28 04:20), 0.2.2 (2023-12-22 05:30), 0.2.3 (2024-02-27 21:00), 0.2.4 (2024-03-19 17:50), 0.2.5 (2024-04-22 15:02), 0.2.6 (2024-05-11 13:53), 0.2.7 (2024-06-13 16:40), 0.2.8 (2024-06-19 09:30), 0.2.9 (2024-06-23 18:00), 0.2.10 (2024-10-18 07:40), 0.2.11 (2024-12-04 23:40), 0.2.12 (2025-01-17 13:30)
Other packages that cited lrstat R package
View lrstat citation profile
Other R packages that lrstat depends, imports, suggests or enhances
Complete documentation for lrstat
Functions, R codes and Examples using the lrstat R package
Some associated functions: accrual . ad . adaptDesign . caltime . errorSpent . exitprob . fadjpbon . fadjpdun . fadjpsim . findInterval2 . fmodmix . fseqbon . fstdmix . fstp2seq . ftrunc . fwgtmat . getADCI . getADRCI . getAccrualDurationFromN . getBound . getCI . getCP . getDesign . getDurationFromNevents . getNeventsFromHazardRatio . getRCI . hd . kmest . kmest1 . lrpower . lrsamplesize . lrsim . lrsim2e . lrsim2e3a . lrsim3a . lrstat-package . lrstat . lrstat1 . natrisk . nevent . nevent2 . param_accrualDuration . param_accrualIntensity . param_accrualTime . param_allocationRatioPlanned . param_alpha . param_criticalValues . param_efficacyStopping . param_estimateHazardRatio . param_fixedFollowup . param_followupTime . param_futilityBounds . param_futilityStopping . param_gamma . param_gamma1 . param_gamma1_stratified . param_gamma2 . param_gamma2_stratified . param_hazardRatioH0 . param_informationRates . param_kMax . param_lambda . param_lambda1 . param_lambda1_stratified . param_lambda2 . param_lambda2_stratified . param_maxFollowupTime . param_minFollowupTime . param_numSubintervals . param_parameterAlphaSpending . param_parameterBetaSpending . param_piecewiseSurvivalTime . param_rho1 . param_rho2 . param_stratumFraction . param_typeAlphaSpending . param_typeBetaSpending . param_typeOfComputation . param_userAlphaSpending . param_userBetaSpending . patrisk . pd . pevent . print.adaptDesign . print.design . print.lrpower . print.lrsim . qtpwexp . repeatedPValue . updateGraph . 
Some associated R codes: RcppExports.R . lrstat-package.R . parameter_descriptions.R . prints.R . wrappers.R .  Full lrstat package functions and examples
Downloads during the last 30 days
03/3003/3104/0104/0204/0304/0404/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/28Downloads for lrstat5101520253035404550TrendBars

Today's Hot Picks in Authors and Packages

NBBDesigns  
Neighbour Balanced Block Designs (NBBDesigns)
Neighbour-balanced designs ensure that no treatment is disadvantaged unfairly by its surroundings. T ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
bigGP  
Distributed Gaussian Process Calculations
Distributes Gaussian process calculations across nodes in a distributed memory setting, using Rmpi. ...
Download / Learn more Package Citations See dependency  
phecodemap  
Visualization for PheCode Mapping with ICD-9 and ICD-10-CM Codes
To build a shiny app for visualization of the hierarchy of PheCode Mapping with International Classi ...
Download / Learn more Package Citations See dependency  
knockoff  
The Knockoff Filter for Controlled Variable Selection
The knockoff filter is a general procedure for controlling the false discovery rate (FDR) when perf ...
Download / Learn more Package Citations See dependency  
PCAmatchR  
Match Cases to Controls Based on Genotype Principal Components
Matches cases to controls based on genotype principal components (PC). In order to produce better r ...
Download / Learn more Package Citations See dependency  

24,142

R Packages

207,311

Dependencies

65,176

Author Associations

24,143

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA