Learn R Programming

lrstat

lrstat provides power and sample size methods for non-proportional hazards and many other clinical trial designs.

The package is built around weighted log-rank methodology for time-to-event group sequential designs, with flexible accrual, event/dropout modeling, error-spending boundaries, and simulation support. It also includes design and inference tools for continuous, binary, count, and equivalence settings, including adaptive and multi-arm/multi-stage extensions.

Installation

Install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("kaifenglu/lrstat")

Key Features

  • Weighted log-rank design and power under non-proportional hazards using the Fleming-Harrington class of weights.
  • Group sequential design support with Lan-DeMets error spending and boundary calculations.
  • Analytical and simulation-based operating characteristics for power, event counts, accrual duration, and follow-up duration.
  • Support for adaptive group sequential updates (sample size, timing, error spending, future looks).
  • Design modules for continuous, binary, count, and time-to-event endpoints, including equivalence settings.
  • Specialized methods for crossover, repeated measures (MMRM), exact methods, and multi-arm/multi-stage workflows.
  • Built-in datasets and a Shiny interface.

Typical Workflow

  1. Specify design assumptions: accrual profile, event/dropout hazards, allocation, number/timing of looks, and spending function.
  2. Compute design characteristics with weighted log-rank functions such as lrpower(), lrsamplesize(), getBound(), and related utilities.
  3. Optionally evaluate robustness via simulation (for example, lrsim()) and compare alternative design scenarios.
  4. Summarize final design choices and explore sensitivity to delayed effects, accrual changes, or follow-up constraints.

Minimal Time-to-Event Example

The example below computes power for a two-look group sequential trial with a delayed treatment effect and FH(0,1) weighting.

library(lrstat)

fit <- lrpower(
  kMax = 2,
  informationRates = c(0.8, 1),
  alpha = 0.025,
  typeAlphaSpending = "sfOF",
  allocationRatioPlanned = 1,
  accrualTime = seq(0, 9),
  accrualIntensity = c(26 / 9 * seq(1, 9), 26),
  piecewiseSurvivalTime = c(0, 6),
  lambda1 = c(0.0533, 0.0309),
  lambda2 = c(0.0533, 0.0533),
  gamma1 = -log(1 - 0.05) / 12,
  gamma2 = -log(1 - 0.05) / 12,
  accrualDuration = 22,
  followupTime = 18,
  fixedFollowup = FALSE,
  rho1 = 0,
  rho2 = 1
)

fit

Additional Design Families

lrstat includes broad design support beyond weighted log-rank settings, including:

  • Continuous endpoints (for example, mean difference/ratio and MMRM-based designs).
  • Binary endpoints (including exact methods and interval-based dose-finding tools such as mTPI-2 and BOIN helpers).
  • Count endpoints (including negative binomial settings with censoring).
  • Equivalence and adaptive group sequential variants across supported endpoint types.

See the reference index for the full function catalog.

Shiny App

Launch the interactive application:

library(lrstat)
runShinyApp_lrstat()

Documentation

Citation

If you use lrstat in analyses, reports, or publications, please cite the package and relevant methodological references documented in the function help pages and vignettes.

Copy Link

Version

Install

install.packages('lrstat')

Monthly Downloads

645

Version

0.3.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kaifeng Lu

Last Published

August 25th, 2026

Functions in lrstat (0.3.3)

caltime

Calendar Times for Target Number of Events
aml

Acute myelogenous leukemia survival data from the survival package
BOINTable

BOIN Decision Table for Dose-Finding Trials
adaptDesign

Adaptive Design at an Interim Look
assess_phregr

Assess Proportional Hazards Assumption Based on Supremum Test
adaptDesign_seamless

Adaptive Phase 2/3 Seamless Design
accrual

Number of Enrolled Subjects
ClopperPearsonCI

Clopper-Pearson Confidence Interval for One-Sample Proportion
binary_tte_sim

Simulation for a Binary and a Time-to-Event Endpoint in Group Sequential Trials
adaptDesign_multiarm

Adaptive Multi-Arm Multi-Stage Design
covrmst

Covariance Between Restricted Mean Survival Times
corr_pfs_os

Correlation Between PFS and OS Given Correlation Between PD and OS
dtpwexp

Density Function of Truncated Piecewise Exponential Distribution
exitprob_seamless

Exit Probabilities for Phase 2/3 Seamless Design
errorSpent

Error Spending
fCERNewBound

Compute new stage-wise bounds after adaptation
fCERCer

Compute conditional error rates
exitprob

Stagewise Exit Probabilities
fCERRej

Determine stage 2 rejections from conditional error rates
exitprob_multiarm

Exit Probabilities for Multi-Arm Multi-Stage Design
fPCStagewise

Compute stage-wise local p-values
fPCRej

Determine stage 2 rejections using p-value combination
finthyp

Indicator Matrix for All Intersection Hypotheses
fadjpsim

Adjusted p-Values for Simes-Based Graphical Approaches
fadjpbon

Adjusted p-Values for Bonferroni-Based Graphical Approaches
fDefaultWgtmat

Default Weight Matrix for All Intersection Hypotheses
fadjpdun

Adjusted p-Values for Dunnett-Based Graphical Approaches
fCERStageBound

Compute stage-wise bounds for multiple testing
float_to_fraction

Converting a decimal to a fraction
fPCStage1

Determine stage 1 rejections for adaptive multiple testing
ftrunc

Adjusted p-Values for Holm, Hochberg, and Hommel Procedures
fmodmix

Adjusted p-Values for Modified Mixture Gatekeeping Procedures
fseqbon

Group Sequential Trials Using Bonferroni-Based Graphical Approaches
fstdmix

Adjusted p-Values for Standard Mixture Gatekeeping Procedures
fquantile

The Quantiles of a Survival Distribution
getADCI_multiarm

Confidence Interval After Adaptation for Multi-Arm Multi-Stage Design
getADCI_seamless

Confidence Interval After Adaptation for Phase 2/3 Seamless Design
fstp2seq

Adjusted p-Values for Stepwise Testing Procedures for Two Sequences
fwgtmat

Weight Matrix for All Intersection Hypotheses
getADCI

Confidence Interval After Adaptation
getBound

Efficacy Boundaries for Group Sequential Design
getCP

Conditional Power for Generic Group Sequential Design
getBound_multiarm

Efficacy Boundaries for Multi-Arm Multi-Stage Design
getAccrualDurationFromN

Accrual Duration to Enroll Target Number of Subjects
getBound_seamless

Efficacy Boundaries for Phase 2/3 Seamless Design
getCI

Confidence Interval After Trial Termination
getADRCI

Repeated Confidence Interval After Adaptation
getCP_multiarm

Conditional Power for Multi-Arm Multi-Stage Design
getCI_multiarm

Confidence Interval After Trial Termination for Multi-Arm Multi-Stage Design
getCI_seamless

Confidence Interval After Trial Termination for Phase 2/3 Seamless Design
getDesign2

Power and Sample Size for Group Sequential Design With Futility Stopping Under Null Hypothesis
getDesignFisherExact

Power and Sample Size for Fisher's Exact Test for Two Proportions
getCP_seamless

Conditional Power for Phase 2/3 Seamless Design
getDesignANOVA

Power and Sample Size for One-Way ANOVA
getDesignAgreement

Power and Sample Size for Cohen's kappa
getDesign

Power and Sample Size for Generic Group Sequential Design
getDesignLogistic

Power and Sample Size for Logistic Regression
getDesignANOVAContrast

Power and Sample Size for One-Way ANOVA Contrast
getDesignEquiv

Power and Sample Size for Generic Group Sequential Equivalence Design
getDesignMeanDiff

Group Sequential Design for Two-Sample Mean Difference
getDesignMeanDiffMMRM

Group Sequential Design for Two-Sample Mean Difference From the MMRM Model
getDesignMeanRatioXO

Group Sequential Design for Mean Ratio in 2x2 Crossover
getDesignMeanDiffXO

Group Sequential Design for Mean Difference in 2x2 Crossover
getDesignMeanDiffCarryover

Power and Sample Size for Direct Treatment Effects in Crossover Trials
getDesignMeanDiffCarryoverEquiv

Power and Sample Size for Equivalence in Direct Treatment Effects in Crossover Trials
getDesignMeanDiffXOEquiv

Group Sequential Design for Equivalence in Mean Difference in 2x2 Crossover
getDesignMeanDiffEquiv

Group Sequential Design for Equivalence in Two-Sample Mean Difference
getDesignMeanRatioXOEquiv

Group Sequential Design for Equivalence in Mean Ratio in 2x2 Crossover
getDesignMeanRatio

Group Sequential Design for Two-Sample Mean Ratio
getDesignMeanRatioEquiv

Group Sequential Design for Equivalence in Two-Sample Mean Ratio
getDesignOneMean

Group Sequential Design for One-Sample Mean
getDesignOddsRatio

Group Sequential Design for Two-Sample Odds Ratio
getDesignOrderedBinom

Power and Sample Size for Cochran-Armitage Trend Test for Ordered Multi-Sample Binomial Response
getDesignOneRateExact

Power and Sample Size for One-Sample Poisson Rate Exact Test
getDesignPairedMeanDiffEquiv

Group Sequential Design for Equivalence in Paired Mean Difference
getDesignPairedMeanDiff

Group Sequential Design for Paired Mean Difference
getDesignOneSlope

Group Sequential Design for One-Sample Slope
getDesignOneProportion

Group Sequential Design for One-Sample Proportion
getDesignOneMultinom

Power and Sample Size for One-Sample Multinomial Response
getDesignOddsRatioEquiv

Group Sequential Design for Equivalence in Two-Sample Odds Ratio
getDesignPairedMeanRatioEquiv

Group Sequential Design for Equivalence in Paired Mean Ratio
getDesignRiskDiff

Group Sequential Design for Two-Sample Risk Difference
getDesignRiskDiffExactEquiv

Power and Sample Size for Exact Unconditional Test for Equivalence in Risk Difference
getDesignRiskDiffExact

Power and Sample Size for Exact Unconditional Test for Risk Difference
getDesignRiskDiffEquiv

Group Sequential Design for Equivalence in Two-Sample Risk Difference
getDesignRepeatedANOVAContrast

Power and Sample Size for One-Way Repeated Measures ANOVA Contrast
getDesignRepeatedANOVA

Power and Sample Size for Repeated-Measures ANOVA
getDesignPairedMeanRatio

Group Sequential Design for Paired Mean Ratio
getDesignRiskRatio

Group Sequential Design for Two-Sample Risk Ratio
getDesignPairedPropMcNemar

Group Sequential Design for McNemar's Test for Paired Proportions
getDesignRiskRatioExactEquiv

Power and Sample Size for Exact Unconditional Test for Equivalence in Risk Ratio
getDesignRiskRatioExact

Power and Sample Size for Exact Unconditional Test for Risk Ratio
getDesignSlopeDiff

Group Sequential Design for Two-Sample Slope Difference
getDesignTwoMultinom

Power and Sample Size for Difference in Two-Sample Multinomial Responses
getDesignUnorderedBinom

Power and Sample Size for Unordered Multi-Sample Binomial Response
getDesignTwoOrdinal

Power and Sample Size for the Wilcoxon Test for Two-Sample Ordinal Response
getDesignRiskRatioEquiv

Group Sequential Design for Equivalence in Two-Sample Risk Ratio
getDesignRiskRatioFM

Group Sequential Design for Two-Sample Risk Ratio Based on the Farrington-Manning Score Test
getDesignTwoWayANOVA

Power and Sample Size for Two-Way ANOVA
getDesignSlopeDiffMMRM

Group Sequential Design for Two-Sample Slope Difference From the MMRM Model
getRCI

Repeated Confidence Interval for Group Sequential Design
getDurationFromNevents

Range of Accrual Duration for Target Number of Events
getDesignUnorderedMultinom

Power and Sample Size for Unordered Multi-Sample Multinomial Response
hazard_pd

Hazard Function for Progressive Disease (PD) Given Correlation Between PD and OS
getDesign_multiarm

Power and Sample Size for Multi-Arm Multi-Stage Design
getDesignWilcoxon

Group Sequential Design for Two-Sample Wilcoxon Test
heart

Stanford heart transplant data from the survival package
hazard_sub

Hazard Function for Sub Population
getDesign_seamless

Power and Sample Size for Phase 2/3 Seamless Design
getNeventsFromHazardRatio

Required Number of Events Given Hazard Ratio
kmpowerequiv

Power for Equivalence in Milestone Survival Probability Difference
hedgesg

Hedges' g Effect Size
kmdiff

Estimate of Milestone Survival Difference
kmpower1s

Power for One-Sample Milestone Survival Probability
kmest

Kaplan-Meier Estimates of Survival Curve
kmsamplesize1s

Sample Size for One-Sample Milestone Survival Probability
kmpower

Power for Difference in Milestone Survival Probabilities
ingots

The binary data from Cox and Snell (1989, pp. 10-11).
kmsamplesize

Sample Size for Difference in Milestone Survival Probabilities
immdef

Simulated CONCORDE trial data from the rpsftm package
kmsamplesizeequiv

Sample Size for Equivalence in Milestone Survival Probability Difference
lrsamplesize

Log-Rank Test Sample Size
liver

The liver data used in SAS PROC PHREG documentation examples.
lrpowerequiv

Power for Equivalence in Hazard Ratio
logisregr

Logistic Regression Models for Binary Data
liferegr

Parametric Regression Models for Failure Time Data
lrpower

Log-Rank Test Power
kmstat

Stratified Difference in Milestone Survival Probabilities
lrsamplesizeequiv

Sample Size for Equivalence in Hazard Ratio
kmsurv

Kaplan-Meier Survival Probability Based on Pooled Sample
lrsim3a

Log-Rank Test Simulation for Three Arms
lrsim_bmTrtSel

Simulation of a seamless phase II/III design with treatment selection based on a short-term endpoint
lrsim2e

Log-Rank Test Simulation for PFS and OS Endpoints
lrsim_multiarm

Log-Rank Test Simulation for Multi-Arm Multi-Stage Design
lrsim

Log-Rank Test Simulation
lrsim_mcpmod

Log-Rank Test Simulation for MCPMod Design
lrsimsub

Log-Rank Test Simulation for Enrichment Design
lrschoenfeld

Schoenfeld Method for Log-Rank Test Sample Size Calculation
lrsim2e3a

Log-Rank Test Simulation for Two Endpoints (PFS and OS) and Three Arms
lrsim_seamless

Log-Rank Test Simulation for Phase 2/3 Seamless Design
lrtest

Log-Rank Test of Survival Curve Difference
mnOddsRatioCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Odds Ratio
mnRiskRatioCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Risk Ratio
mTPI2Table

mTPI-2 Decision Table
mnRateDiffCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Rate Difference
mtpwexp

Mean and Variance of Truncated Piecewise Exponential Distribution
mnRiskDiffCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Risk Difference
mnRateRatioCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Rate Ratio
lrstat

Number of Subjects Having an Event and Log-Rank Statistics
lrstat-package

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

Parameter Description: accrualDuration
nbpower1s

Power for One-Sample Negative Binomial Rate
nbsamplesize

Sample Size for Negative Binomial Rate Ratio
nbsamplesize1s

Sample Size for One-Sample Negative Binomial Rate
nbsamplesizeequiv

Sample Size for Equivalence in Negative Binomial Rate Ratio
nevent

Number of Subjects Having an Event by Calendar Time
natrisk

Number of Subjects at Risk
nbpowerequiv

Power for Equivalence in Negative Binomial Rate Ratio
nbpower

Power for Negative Binomial Rate Ratio
nbstat

Negative Binomial Rate Ratio
param_fixedFollowup

Parameter Description: fixedFollowup
param_allocationRatioPlanned

Parameter Description: allocationRatioPlanned
param_futilityBounds

Parameter Description: futilityBounds
param_efficacyStopping

Parameter Description: efficacyStopping
param_criticalValues

Parameter Description: criticalValues
param_futilityStopping

Parameter Description: futilityStopping
param_alpha

Parameter Description: alpha
param_followupTime

Parameter Description: followupTime
param_accrualIntensity

Parameter Description: accrualIntensity
param_accrualTime

Parameter Description: accrualTime
param_gamma1_stratified

Parameter Description: gamma1_stratified
param_lambda

Parameter Description: lambda
param_gamma

Parameter Description: gamma
param_gamma1

Parameter Description: gamma1
param_gamma2

Parameter Description: gamma2
param_informationRates

Parameter Description: informationRates
param_hazardRatioH0

Parameter Description: hazardRatioH0
param_lambda1

Parameter Description: lambda1
param_gamma2_stratified

Parameter Description: gamma2_stratified
param_kMax

Parameter Description: kMax
param_maxFollowupTime

Parameter Description: maxFollowupTime
param_lambda2_stratified

Parameter Description: lambda2_stratified
param_minFollowupTime

Parameter Description: minFollowupTime
param_lambda1_stratified

Parameter Description: lambda1_stratified
param_parameterAlphaSpending

Parameter Description: parameterAlphaSpending
param_parameterBetaSpending

Parameter Description: parameterBetaSpending
param_piecewiseSurvivalTime

Parameter Description: piecewiseSurvivalTime
param_rho2

Parameter Description: rho2
param_rho1

Parameter Description: rho1
patrisk

Probability of Being at Risk
pbvnorm

Distribution Function of the Standard Bivariate Normal
param_userAlphaSpending

Parameter Description: userAlphaSpending
param_lambda2

Parameter Description: lambda2
param_typeBetaSpending

Parameter Description: typeBetaSpending
param_userBetaSpending

Parameter Description: userBetaSpending
param_stratumFraction

Parameter Description: stratumFraction
phregr

Proportional Hazards Regression Models
pevent

Probability of Having an Event
param_typeAlphaSpending

Parameter Description: typeAlphaSpending
param_typeOfComputation

Parameter Description: typeOfComputation
powerFisherExact

Power for Fisher's Exact Test for Two Proportions
print.BOINTable

Print the Decision Table for the BOIN Design
powerRiskDiffExact

Power for Exact Unconditional Test of Risk Difference
powerOnePropExact

Power for Binomial One-Sample Exact Test
powerRiskDiffExactEquiv

Power for Exact Unconditional Test of Equivalence in Risk Difference
pmvnormr

Multivariate Normal Probabilities over a Hyperrectangle
powerRiskRatioExactEquiv

Power for Exact Unconditional Test of Equivalence in Risk Ratio
print.design

Print Group Sequential Design
powerOneRateExact

Power for Poisson One-Sample Exact Test
print.designANOVA

Print Power and Sample Size Results for One-Way ANOVA
plot.assess_phregr

Plot method for assess_phregr objects
print.designAgreement

Print Power and Sample Size Results for Cohen's kappa.
print.designEquiv

Print Group Sequential Equivalence Design
powerRiskRatioExact

Power for Exact Unconditional Test of Risk Ratio
print.designANOVAContrast

Print Power and Sample Size Results for a Single Contrast in One-Way ANOVA
print.adaptDesign_seamless

Print Adaptive Phase 2/3 Seamless Design
print.adaptDesign

Print Adaptive Group Sequential Design
print.adaptDesign_multiarm

Print Adaptive Multi-Arm Multi-Stage Design
print.designLogistic

Print Power and Sample Size Results for Logistic Regression
print.designMeanDiffCarryover

Print Power and Sample Size Results for Direct Treatment Effects in Crossover Trials With or Without Accounting for Carryover Effects
print.designMeanRatioEquiv

Print Power and Sample Size Results for Equivalence in Two-Sample Mean Ratio
print.designMeanDiffXO

Print Power and Sample Size Results for Mean Difference in 2x2 Crossover
print.assess_phregr

Print method for assess_phregr objects
print.designMeanRatioXO

Print Power and Sample Size Results for Mean Ratio in 2x2 Crossover
print.designMeanDiff

Print Power and Sample Size Results for Two-Sample Mean Difference
print.designMeanDiffMMRM

Print Power and Sample Size Results for Two-Sample Mean Difference at the Last Time Point From the MMRM Model
print.designOddsRatio

Print Power and Sample Size Results for Two-Sample Odds Ratio
print.designMeanDiffCarryoverEquiv

Print Power and Sample Size Results for Equivalence in Direct Treatment Effects in Crossover Trials With or Without Accounting for Carryover Effects
print.designPairedMeanDiff

Print Power and Sample Size Results for Paired Mean Difference
print.designMeanRatioXOEquiv

Print Power and Sample Size Results for Equivalence in Mean Ratio in 2x2 Crossover
print.designMeanDiffEquiv

Print Power and Sample Size Results for Equivalence in Two-Sample Mean Difference
print.designOneMean

Print Power and Sample Size Results for One-Sample Mean
print.designOneSlope

Print Power and Sample Size Results for One-Sample Slope
print.designOneMultinom

Print Power and Sample Size Results for One-Sample Multinomial Response
print.designOrderedBinom

Print Power and Sample Size Results for Cochran-Armitage Trend Test for Ordered Multi-Sample Binomial Response
print.designOneProportion

Print Power and Sample Size Results for One-Sample Proportion
print.designMeanRatio

Print Power and Sample Size Results for Two-Sample Mean Ratio
print.designRiskRatioEquiv

Print Power and Sample Size Results for Equivalence in Two-Sample Risk Ratio
print.designRepeatedANOVAContrast

Print Power and Sample Size Results for a Single Contrast in One-Way Repeated Measures ANOVA
print.designPairedMeanRatio

Print Power and Sample Size Results for Paired Mean Ratio
print.designMeanDiffXOEquiv

Print Power and Sample Size Results for Equivalence in Mean Difference in 2x2 Crossover
print.designOddsRatioEquiv

Print Power and Sample Size Results for Equivalence in Two-Sample Odds Ratio
print.designRiskDiff

Print Power and Sample Size Results for Two-Sample Risk Difference
print.designPairedMeanRatioEquiv

Print Power and Sample Size Results for Equivalence in Paired Mean Ratio
print.designRiskDiffEquiv

Print Power and Sample Size Results for Equivalence in Two-Sample Risk Difference
print.designRiskRatioFM

Print Power and Sample Size Results for Two-Sample Risk Ratio Based on the Farrington-Manning Score Test
print.designTwoMultinom

Print Power and Sample Size Results for Difference in Two-Sample Multinomial Response
print.designSlopeDiff

Print Power and Sample Size Results for Two-Sample Slope Difference
print.designRiskRatio

Print Power and Sample Size Results for Two-Sample Risk Ratio
print.kmpower

Print Power and Sample Size Results for Milestone Survival Difference
print.designUnorderedMultinom

Print Power and Sample Size Results for Unordered Multi-Sample Multinomial Response
print.designRepeatedANOVA

Print Power and Sample Size Results for One-Way Repeated Measures ANOVA
print.designPairedPropMcNemar

Print Power and Sample Size Results for McNemar's Test for Paired Proportions
print.designPairedMeanDiffEquiv

Print Power and Sample Size Results for Equivalence in Paired Mean Difference
print.designTwoWayANOVA

Print Power and Sample Size Results for Two-Way ANOVA
print.designSlopeDiffMMRM

Print Power and Sample Size Results for Two-Sample Slope Difference at the Last Time Point From the MMRM Model
print.designUnorderedBinom

Print Power and Sample Size Results for Unordered Multi-Sample Binomial Response
print.designTwoOrdinal

Print Power and Sample Size Results for Wilcoxon Test for Two-Sample Ordinal Response.
print.lrpowerequiv

Print Power and Sample Size Results for Equivalence in Hazard Ratio
print.designWilcoxon

Print Power and Sample Size Results for Two-Sample Wilcoxon Test
print.lrpower

Print Power and Sample Size Results for Log-Rank Tests
print.logisregr

Print logisregr Object
print.lrsim_mcpmod

Print Simulation Results for MCPMod Design for Log-Rank Test
print.lrsim_bmTrtSel

Print Simulation Results for Phase 2/3 Seamless Design with Biomarker-Based Treatment Selection
print.mTPI2Table

Print the Decision Table for the mTPI-2 Design
print.rmpower

Print Power and Sample Size Results for Restricted Mean Survival Time Difference
print.nbpower

Print Power and Sample Size Results for Negative Binomial Rate Ratio
print.nbpower1s

Print Power and Sample Size Results for One-Sample Negative Binomial Rate
print.nbpowerequiv

Print Power and Sample Size Results for Equivalence in Negative Binomial Rate Ratio
print.kmpowerequiv

Print Power and Sample Size Results for Equivalence in Milestone Survival Probability Difference
print.lrsim_multiarm

Print Simulation Results for Multi-Arm Multi-Stage Design for Logrank Test
print.rdsim_seamless

Print Simulation Results for Phase 2/3 Seamless Design for Risk Difference
print.phregr

Print phregr Object
print.kmpower1s

Print Power and Sample Size Results for One-Sample Milestone Survival Probability
print.lrsim_seamless

Print Simulation Results for Phase 2/3 Seamless Design for Logrank Test
print.lrsim

Print Simulation Results for Log-Rank Tests
print.rdsim_multiarm

Print Simulation Results for Multi-Arm Multi-Stage Design for Risk Difference
rdsim_seamless

Risk Difference Simulation for Phase 2/3 Seamless Design
pwexploglik

Profile Log-Likelihood Function for Change Points in Piecewise Exponential Approximation
rdsim_multiarm

Risk Difference Simulation for Multi-Arm Multi-Stage Design
ptpwexp

Distribution Function of Truncated Piecewise Exponential Distribution
qmvnormr

Equicoordinate Quantiles of the Multivariate Normal Distribution
pwexpcuts

Piecewise Exponential Approximation to a Survival Distribution
qtpwexp

Quantile Function of Truncated Piecewise Exponential Distribution
print.rmpower1s

Print Power and Sample Size Results for One-Sample Restricted Mean Survival Time
print.seamless

Print Phase 2/3 Seamless Design
print.liferegr

Print liferegr Object
rawdata

A simulated time-to-event data set with 10 replications
print.multiarm

Print Multi-Arm Multi-Stage Design
print.rmpowerequiv

Print Power and Sample Size Results for Equivalence in Restricted Mean Survival Time Difference
riskDiffExactPValue

P-Value for Exact Unconditional Test of Risk Difference
remlRiskRatio

REML Estimates of Individual Proportions With Specified Risk Ratio
remlRateRatio

REML Estimates of Individual Rates With Specified Rate Ratio
residuals_liferegr

Residuals for Parametric Regression Models for Failure Time Data
remlRateDiff

REML Estimates of Individual Rates With Specified Rate Difference
repeatedPValue

Repeated p-Values for Group Sequential Design
residuals_phregr

Residuals for Proportional Hazards Regression Models
remlOddsRatio

REML Estimates of Individual Proportions With Specified Odds Ratio
remlRiskDiff

REML Estimates of Individual Proportions With Specified Risk difference
riskDiffExactCI

Exact Unconditional Confidence Interval for Risk Difference
rmsamplesize1s

Sample Size for One-Sample Restricted Mean Survival Time
riskRatioExactCI

Exact Unconditional Confidence Interval for Risk Ratio
rmpowerequiv

Power for Equivalence in Restricted Mean Survival Time Difference
rmsamplesizeequiv

Sample Size for Equivalence in Restricted Mean Survival Time Difference
rmpower1s

Power for One-Sample Restricted Mean Survival Time
riskRatioExactPValue

P-Value for Exact Unconditional Test of Risk Ratio
rmdiff

Estimate of Restricted Mean Survival Time Difference
rmpower

Power for Difference in Restricted Mean Survival Times
rmest

Estimate of Restricted Mean Survival Time
rmsamplesize

Sample Size for Difference in Restricted Mean Survival Times
rmst

Restricted Mean Survival Time
samplesizeOnePropExact

Sample Size for Binomial One-Sample Exact Test
rmstat

Stratified Difference in Restricted Mean Survival Times
rtpwexp

Random Number Generation Function of Truncated Piecewise Exponential Distribution
samplesizeRiskDiffExact

Sample Size for Exact Unconditional Test of Risk Difference
samplesizeFisherExact

Sample Size for Fisher's Exact Test for Two Proportions
samplesizeOneRateExact

Sample Size for Poisson One-Sample Exact Test
samplesizeRiskDiffExactEquiv

Sample Size for Exact Unconditional Test of Equivalence in Risk Difference
runShinyApp_lrstat

Run Shiny App
simon2stage

Simon's Two-Stage Design
simonBayesAnalysis

Analysis of Simon's Bayesian Basket Trials
survQuantile

Brookmeyer-Crowley Confidence Interval for Quantiles of Right-Censored Time-to-Event Data
simonBayesSim

Simulation of Simon's Bayesian Basket Trials
svdcpp

Singular Value Decomposition of a Matrix
survfit_phregr

Survival Curve for Proportional Hazards Regression Models
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).
samplesizeRiskRatioExactEquiv

Sample Size for Exact Unconditional Test of Equivalence in Risk Ratio
samplesizeRiskRatioExact

Sample Size for Exact Unconditional Test of Risk Ratio
sexagg

Urinary tract infection data from the logistf package
tobin

Tobin's tobit data from the survival package
updateGraph

Update Graph for Graphical Approaches
zstatRiskDiff

Miettinen-Nurminen Score Test Statistic for Two-Sample Risk difference
zstatRateRatio

Miettinen-Nurminen Score Test Statistic for Two-Sample Rate Ratio
zstatOddsRatio

Miettinen-Nurminen Score Test Statistic for Two-Sample Odds Ratio
zstatRateDiff

Miettinen-Nurminen Score Test Statistic for Two-Sample Rate Difference
zph_phregr

Assess Proportional Hazards Assumption Based on Scaled Schoenfeld Residuals
zstatRiskRatio

Miettinen-Nurminen Score Test Statistic for Two-Sample Risk Ratio