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.12")



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.12, https://cran.r-project.org/web/packages/lrstat. Accessed 06 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/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/05Downloads for lrstat0102030405060708090TrendBars

Today's Hot Picks in Authors and Packages

BeviMed  
Bayesian Evaluation of Variant Involvement in Mendelian Disease
A fast integrative genetic association test for rare diseases based on a model for disease status gi ...
Download / Learn more Package Citations See dependency  
mixcure  
Mixture Cure Models
Implementation of parametric and semiparametric mixture cure models based on existing R packages. Se ...
Download / Learn more Package Citations See dependency  
bmscstan  
Bayesian Multilevel Single Case Models using 'Stan'
Analyse single case analyses against a control group. Its purpose is to provide a flexible, with go ...
Download / Learn more Package Citations See dependency  
chameleon  
Automatic Colors for Multi-Dimensional Data
Assign distinct colors to arbitrary multi-dimensional data, considering its structure. ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
AssocAFC  
Allele Frequency Comparison
When doing association analysis one does not always have the genotypes for the control population. ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,867

Author Associations

24,013

Publication Badges

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