Package: lrstat 0.2.11
lrstat: Power and Sample Size Calculation for Non-Proportional Hazards and Beyond
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.
Authors:
lrstat_0.2.11.tar.gz
lrstat_0.2.11.tar.gz(r-4.5-noble)lrstat_0.2.11.tar.gz(r-4.4-noble)
lrstat_0.2.11.tgz(r-4.4-emscripten)lrstat_0.2.11.tgz(r-4.3-emscripten)
lrstat.pdf |lrstat.html✨
lrstat/json (API)
NEWS
# Install 'lrstat' in R: |
install.packages('lrstat', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- aml - Acute myelogenous leukemia survival data from the survival package
- heart - Stanford heart transplant data from the survival package
- immdef - Simulated CONCORDE trial data from the rpsftm package
- ingots - The binary data from Cox and Snell (1989, pp. 10-11).
- rawdata - A simulated time-to-event data set with 10 replications
- sexagg - Urinary tract infection data from the logistf package
- shilong - The randomized clinical trial SHIVA data in long format from the ipcwswitch package
- six - The repeated measures data from the "Six Cities" study of the health effects of air pollution (Ware et al. 1984).
- tobin - Tobin's tobit data from the survival package
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 20 days agofrom:e8cd427409. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 05 2024 |
R-4.5-linux-x86_64 | OK | Dec 05 2024 |
Exports:accrualadadaptDesignbinary_tte_simBOINTablecaltimeClopperPearsonCIcovrmsterrorSpentexitprobfadjpbonfadjpdunfadjpsimfindInterval3fmodmixfquantilefseqbonfstdmixfstp2seqftruncfwgtmatgetAccrualDurationFromNgetADCIgetADRCIgetBoundgetCIgetCPgetDesigngetDesignAgreementgetDesignANOVAgetDesignANOVAContrastgetDesignEquivgetDesignFisherExactgetDesignLogisticgetDesignMeanDiffgetDesignMeanDiffCarryovergetDesignMeanDiffEquivgetDesignMeanDiffMMRMgetDesignMeanDiffXOgetDesignMeanDiffXOEquivgetDesignMeanRatiogetDesignMeanRatioEquivgetDesignMeanRatioXOgetDesignMeanRatioXOEquivgetDesignOddsRatiogetDesignOddsRatioEquivgetDesignOneMeangetDesignOneMultinomgetDesignOneProportiongetDesignOneRateExactgetDesignOneSlopegetDesignOrderedBinomgetDesignPairedMeanDiffgetDesignPairedMeanDiffEquivgetDesignPairedMeanRatiogetDesignPairedMeanRatioEquivgetDesignPairedPropMcNemargetDesignRepeatedANOVAgetDesignRepeatedANOVAContrastgetDesignRiskDiffgetDesignRiskDiffEquivgetDesignRiskDiffExactgetDesignRiskDiffExactEquivgetDesignRiskRatiogetDesignRiskRatioEquivgetDesignRiskRatioExactgetDesignRiskRatioExactEquivgetDesignRiskRatioFMgetDesignSlopeDiffgetDesignSlopeDiffMMRMgetDesignTwoMultinomgetDesignTwoOrdinalgetDesignTwoWayANOVAgetDesignUnorderedBinomgetDesignUnorderedMultinomgetDesignWilcoxongetDurationFromNeventsgetNeventsFromHazardRatiogetRCIhdhedgesgkmdiffkmestkmpowerkmpower1skmpowerequivkmsamplesizekmsamplesize1skmsamplesizeequivkmstatkmstat1kmsurvliferegrlogisregrlrpowerlrpowerequivlrsamplesizelrsamplesizeequivlrsimlrsim2elrsim2e3alrsim3alrstatlrstat1lrtestmnOddsRatioCImnRateDiffCImnRateRatioCImnRiskDiffCImnRiskRatioCImTPI2Tablenatrisknbpowernbpower1snbpowerequivnbsamplesizenbsamplesize1snbsamplesizeequivnbstatnbstat1neventnevent2patriskpdpeventphregrpowerFisherExactpowerOnePropExactpowerOneRateExactpowerRiskDiffExactpowerRiskDiffExactEquivpowerRiskRatioExactpowerRiskRatioExactEquivptpwexppwexpcutspwexploglikqrcppqtpwexpremlOddsRatioremlRateDiffremlRateRatioremlRiskDiffremlRiskRatiorepeatedPValueresiduals_phregrriskDiffExactCIriskDiffExactPValueriskRatioExactCIriskRatioExactPValuermdiffrmestrmpowerrmpower1srmpowerequivrmsamplesizermsamplesize1srmsamplesizeequivrmstrmstatrmstat1rtpwexprunShinyAppsamplesizeFisherExactsamplesizeOnePropExactsamplesizeOneRateExactsamplesizeRiskDiffExactsamplesizeRiskDiffExactEquivsamplesizeRiskRatioExactsamplesizeRiskRatioExactEquivsimon2stagesimonBayesAnalysissimonBayesSimsurvfit_phregrsurvQuantileupdateGraphzstatOddsRatiozstatRateDiffzstatRateRatiozstatRiskDiffzstatRiskRatio
Dependencies:base64encbslibcachemclicommonmarkcrayondigestfastmapfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlifecyclelpSolvemagrittrmemoisemimemvtnormpromisesR6rappdirsRcpprlangsassshinysourcetoolswithrxtable
Comparing Direct Approximation and Schoenfeld Methods
Rendered fromdirect_approximation_vs_schoenfeld.Rmd
usingknitr::rmarkdown
on Dec 05 2024.Last update: 2024-03-20
Started: 2022-08-09
Power Calculation Using Max-Combo Tests
Rendered frommaxcombo.Rmd
usingknitr::rmarkdown
on Dec 05 2024.Last update: 2024-12-04
Started: 2021-12-17
Power Calculation With Stratification Variables
Rendered fromstratified.Rmd
usingknitr::rmarkdown
on Dec 05 2024.Last update: 2024-03-20
Started: 2021-12-17
Sample Size Calculation Under Non-Proportional Hazards
Rendered fromnon-proportional_hazards.Rmd
usingknitr::rmarkdown
on Dec 05 2024.Last update: 2024-03-20
Started: 2021-12-17
Sample Size Calculation With Fixed Follow-up
Rendered fromfixed_follow-up.Rmd
usingknitr::rmarkdown
on Dec 05 2024.Last update: 2024-10-18
Started: 2021-12-17
Simulation for Group Sequential Trials
Rendered fromgroup_sequential_simulation.Rmd
usingknitr::rmarkdown
on Dec 05 2024.Last update: 2024-02-28
Started: 2021-12-17