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

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kaifeng Lu

Last Published

September 15th, 2026

Functions in lrstat (0.3.4)

accrual

Number of Enrolled Subjects
adaptDesign_multiarm

Adaptive Multi-Arm Multi-Stage Design
assess_phregr

Assess Proportional Hazards Assumption Based on Supremum Test
caltime

Calendar Times for Target Number of Events
ClopperPearsonCI

Clopper-Pearson Confidence Interval for One-Sample Proportion
BOINTable

BOIN Decision Table for Dose-Finding Trials
adaptDesign

Adaptive Design at an Interim Look
binary_tte_sim

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

Adaptive Phase 2/3 Seamless Design
aml

Acute myelogenous leukemia survival data from the survival package
covrmst

Covariance Between Restricted Mean Survival Times
dtpwexp

Density Function of Truncated Piecewise Exponential Distribution
fCERRej

Determine stage 2 rejections from conditional error rates
errorSpent

Error Spending
exitprob

Stagewise Exit Probabilities
fCERCer

Compute conditional error rates
fCERNewBound

Compute new stage-wise bounds after adaptation
exitprob_seamless

Exit Probabilities for Phase 2/3 Seamless Design
corr_pfs_os

Correlation Between PFS and OS Given Correlation Between PD and OS
exitprob_multiarm

Exit Probabilities for Multi-Arm Multi-Stage Design
float_to_fraction

Converting a decimal to a fraction
finthyp

Indicator Matrix for All Intersection Hypotheses
fDefaultWgtmat

Default Weight Matrix for All Intersection Hypotheses
fCERStageBound

Compute stage-wise bounds for multiple testing
fPCStagewise

Compute stage-wise local p-values
fadjpdun

Adjusted p-Values for Dunnett-Based Graphical Approaches
fadjpsim

Adjusted p-Values for Simes-Based Graphical Approaches
fadjpbon

Adjusted p-Values for Bonferroni-Based Graphical Approaches
fPCRej

Determine stage 2 rejections using p-value combination
fPCStage1

Determine stage 1 rejections for adaptive multiple testing
getADCI_multiarm

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

Group Sequential Trials Using Bonferroni-Based Graphical Approaches
fstp2seq

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

Weight Matrix for All Intersection Hypotheses
fstdmix

Adjusted p-Values for Standard Mixture Gatekeeping Procedures
fquantile

The Quantiles of a Survival Distribution
getADCI_seamless

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

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

Adjusted p-Values for Modified Mixture Gatekeeping Procedures
getADCI

Confidence Interval After Adaptation
getADRCI

Repeated Confidence Interval After Adaptation
getCI_multiarm

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

Efficacy Boundaries for Phase 2/3 Seamless Design
getBound

Efficacy Boundaries for Group Sequential Design
getCI_seamless

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

Confidence Interval After Trial Termination
getCP

Conditional Power for Generic Group Sequential Design
getCP_multiarm

Conditional Power for Multi-Arm Multi-Stage Design
getBound_multiarm

Efficacy Boundaries for Multi-Arm Multi-Stage Design
getAccrualDurationFromN

Accrual Duration to Enroll Target Number of Subjects
getDesignANOVAContrast

Power and Sample Size for One-Way ANOVA Contrast
getDesignAgreement

Power and Sample Size for Cohen's kappa
getDesignLogistic

Power and Sample Size for Logistic Regression
getDesignEquiv

Power and Sample Size for Generic Group Sequential Equivalence Design
getDesignFisherExact

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

Group Sequential Design for Two-Sample Mean Difference
getCP_seamless

Conditional Power for Phase 2/3 Seamless Design
getDesign

Power and Sample Size for Generic Group Sequential Design
getDesign2

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

Power and Sample Size for One-Way ANOVA
getDesignMeanRatioXO

Group Sequential Design for Mean Ratio in 2x2 Crossover
getDesignMeanRatioXOEquiv

Group Sequential Design for Equivalence in Mean Ratio 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
getDesignMeanDiffEquiv

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

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

Group Sequential Design for Mean Difference in 2x2 Crossover
getDesignMeanRatioEquiv

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

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

Group Sequential Design for Two-Sample Mean Ratio
getDesignOneProportion

Group Sequential Design for One-Sample Proportion
getDesignPairedMeanDiffEquiv

Group Sequential Design for Equivalence in Paired Mean Difference
getDesignOrderedBinom

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

Group Sequential Design for Paired Mean Difference
getDesignOneMultinom

Power and Sample Size for One-Sample Multinomial Response
getDesignOneRateExact

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

Group Sequential Design for One-Sample Slope
getDesignOddsRatio

Group Sequential Design for Two-Sample Odds Ratio
getDesignOneMean

Group Sequential Design for One-Sample Mean
getDesignOddsRatioEquiv

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

Group Sequential Design for Two-Sample Risk Difference
getDesignRepeatedANOVA

Power and Sample Size for Repeated-Measures ANOVA
getDesignRepeatedANOVAContrast

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

Group Sequential Design for Paired Mean Ratio
getDesignRiskDiffExact

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

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

Group Sequential Design for Two-Sample Risk Ratio
getDesignRiskDiffExactEquiv

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

Group Sequential Design for Equivalence in Paired Mean Ratio
getDesignPairedPropMcNemar

Group Sequential Design for McNemar's Test for Paired Proportions
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
getDesignRiskRatioExact

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

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

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

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

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

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

Power and Sample Size for Two-Way ANOVA
getDesignSlopeDiff

Group Sequential Design for Two-Sample Slope Difference
hazard_sub

Hazard Function for Sub Population
getDesign_multiarm

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

Range of Accrual Duration for Target Number of Events
getRCI

Repeated Confidence Interval for Group Sequential Design
getDesign_seamless

Power and Sample Size for Phase 2/3 Seamless Design
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
getDesignWilcoxon

Group Sequential Design for Two-Sample Wilcoxon Test
getNeventsFromHazardRatio

Required Number of Events Given Hazard Ratio
getNFromNeventsAndFollowup

Accrual Duration for Target Number of Events and Follow-up Time
heart

Stanford heart transplant data from the survival package
kmdiff

Estimate of Milestone Survival Difference
kmest

Kaplan-Meier Estimates of Survival Curve
hedgesg

Hedges' g Effect Size
immdef

Simulated CONCORDE trial data from the rpsftm package
kmpower

Power for Difference in Milestone Survival Probabilities
kmpowerequiv

Power for Equivalence in Milestone Survival Probability Difference
ingots

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

Sample Size for One-Sample Milestone Survival Probability
kmpower1s

Power for One-Sample Milestone Survival Probability
kmsamplesize

Sample Size for Difference in Milestone Survival Probabilities
kmstat

Stratified Difference in Milestone Survival Probabilities
lrpower

Log-Rank Test Power
lrsamplesize

Log-Rank Test Sample Size
liferegr

Parametric Regression Models for Failure Time Data
lrpowerequiv

Power for Equivalence in Hazard Ratio
logisregr

Logistic Regression Models for Binary Data
liver

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

Kaplan-Meier Survival Probability Based on Pooled Sample
kmsamplesizeequiv

Sample Size for Equivalence in Milestone Survival Probability Difference
lrsim2e3a

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

Sample Size for Equivalence in Hazard Ratio
lrsim_mcpmod

Log-Rank Test Simulation for MCPMod Design
lrsim

Log-Rank Test Simulation
lrsim2e

Log-Rank Test Simulation for PFS and OS Endpoints
lrsim_multiarm

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

Log-Rank Test Simulation for Phase 2/3 Seamless Design
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 and toxicities
lrschoenfeld

Schoenfeld Method for Log-Rank Test Sample Size Calculation
lrsimsub

Log-Rank Test Simulation for Enrichment Design
mnRiskRatioCI

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

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

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

mTPI-2 Decision Table
lrstat

Number of Subjects Having an Event and Log-Rank Statistics
lrtest

Log-Rank Test of Survival Curve Difference
mnRiskDiffCI

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

Miettinen-Nurminen Score Confidence Interval for Two-Sample Odds Ratio
lrstat-package

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

Number of Subjects at Risk
nbsamplesizeequiv

Sample Size for Equivalence in Negative Binomial Rate Ratio
mtpwexp

Mean and Variance of Truncated Piecewise Exponential Distribution
nbsamplesize1s

Sample Size for One-Sample Negative Binomial Rate
nbpower

Power for Negative Binomial Rate Ratio
nbpowerequiv

Power for Equivalence in Negative Binomial Rate Ratio
nbsamplesize

Sample Size for Negative Binomial Rate Ratio
nbpower1s

Power for One-Sample Negative Binomial Rate
nbstat

Negative Binomial Rate Ratio
nevent

Number of Subjects Having an Event by Calendar Time
param_allocationRatioPlanned

Parameter Description: allocationRatioPlanned
param_fixedFollowup

Parameter Description: fixedFollowup
param_followupTime

Parameter Description: followupTime
param_futilityBounds

Parameter Description: futilityBounds
param_criticalValues

Parameter Description: criticalValues
param_alpha

Parameter Description: alpha
param_efficacyStopping

Parameter Description: efficacyStopping
param_accrualDuration

Parameter Description: accrualDuration
param_accrualTime

Parameter Description: accrualTime
param_accrualIntensity

Parameter Description: accrualIntensity
param_gamma2

Parameter Description: gamma2
param_hazardRatioH0

Parameter Description: hazardRatioH0
param_gamma2_stratified

Parameter Description: gamma2_stratified
param_futilityStopping

Parameter Description: futilityStopping
param_kMax

Parameter Description: kMax
param_gamma

Parameter Description: gamma
param_lambda

Parameter Description: lambda
param_gamma1

Parameter Description: gamma1
param_informationRates

Parameter Description: informationRates
param_lambda1_stratified

Parameter Description: lambda1_stratified
param_lambda2

Parameter Description: lambda2
param_rho1

Parameter Description: rho1
param_maxFollowupTime

Parameter Description: maxFollowupTime
param_minFollowupTime

Parameter Description: minFollowupTime
param_lambda1

Parameter Description: lambda1
param_parameterBetaSpending

Parameter Description: parameterBetaSpending
param_gamma1_stratified

Parameter Description: gamma1_stratified
param_piecewiseSurvivalTime

Parameter Description: piecewiseSurvivalTime
param_parameterAlphaSpending

Parameter Description: parameterAlphaSpending
pbvnorm

Distribution Function of the Standard Bivariate Normal
patrisk

Probability of Being at Risk
param_lambda2_stratified

Parameter Description: lambda2_stratified
param_stratumFraction

Parameter Description: stratumFraction
param_typeAlphaSpending

Parameter Description: typeAlphaSpending
param_typeOfComputation

Parameter Description: typeOfComputation
param_userBetaSpending

Parameter Description: userBetaSpending
param_rho2

Parameter Description: rho2
param_userAlphaSpending

Parameter Description: userAlphaSpending
param_typeBetaSpending

Parameter Description: typeBetaSpending
powerOneRateExact

Power for Poisson One-Sample Exact Test
phregr

Proportional Hazards Regression Models
pevent

Probability of Having an Event
plot.assess_phregr

Plot method for assess_phregr objects
powerOnePropExact

Power for Binomial One-Sample Exact Test
powerRiskDiffExactEquiv

Power for Exact Unconditional Test of Equivalence in Risk Difference
powerFisherExact

Power for Fisher's Exact Test for Two Proportions
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
pmvnormr

Multivariate Normal Probabilities over a Hyperrectangle
pordmvnormr

Distribution Function for a Normal Order Statistic
print.designMeanDiffMMRM

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

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

Print the Decision Table for the BOIN Design
print.designAgreement

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

Print Group Sequential Design
print.designMeanDiff

Print Power and Sample Size Results for Two-Sample Mean Difference
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.adaptDesign

Print Adaptive Group Sequential Design
print.adaptDesign_seamless

Print Adaptive Phase 2/3 Seamless Design
print.adaptDesign_multiarm

Print Adaptive Multi-Arm Multi-Stage Design
powerRiskDiffExact

Power for Exact Unconditional Test of Risk Difference
print.designMeanDiffXOEquiv

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

Print Power and Sample Size Results for One-Way ANOVA
print.designLogistic

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

Print method for assess_phregr objects
print.designMeanDiffXO

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

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

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

Print Group Sequential Equivalence Design
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.designOrderedBinom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Print Simulation Results for Log-Rank Tests
print.lrpowerequiv

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

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

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

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

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

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

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

Print Multi-Arm Multi-Stage Design
print.lrsim_multiarm

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

Print logisregr Object
print.designRiskRatioFM

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

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

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

Print liferegr Object
print.mTPI2Table

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

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

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

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

Print Power and Sample Size Results for Negative Binomial Rate Ratio
ptpwexp

Distribution Function of Truncated Piecewise Exponential Distribution
qtpwexp

Quantile Function of Truncated Piecewise Exponential Distribution
print.rmpower

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

Print Power and Sample Size Results for Equivalence in Restricted Mean Survival Time Difference
print.rmpower1s

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

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

Print Simulation Results for Multi-Arm Multi-Stage Design for Risk Difference
print.phregr

Print phregr Object
rawdata

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

Print Phase 2/3 Seamless Design
pwexpcuts

Piecewise Exponential Approximation to a Survival Distribution
print.designOddsRatio

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

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

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

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

Print Power and Sample Size Results for Difference in Two-Sample Multinomial Response
residuals_liferegr

Residuals for Parametric Regression Models for Failure Time Data
pwexploglik

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

Equicoordinate Quantiles of the Multivariate Normal Distribution
repeatedPValue

Repeated p-Values for Group Sequential Design
remlRiskRatio

REML Estimates of Individual Proportions With Specified Risk Ratio
rdsim_multiarm

Risk Difference Simulation for Multi-Arm Multi-Stage Design
print.kmpower

Print Power and Sample Size Results for Milestone Survival Difference
rdsim_seamless

Risk Difference Simulation for Phase 2/3 Seamless Design
remlRateDiff

REML Estimates of Individual Rates With Specified Rate Difference
remlRateRatio

REML Estimates of Individual Rates With Specified Rate Ratio
remlOddsRatio

REML Estimates of Individual Proportions With Specified Odds Ratio
remlRiskDiff

REML Estimates of Individual Proportions With Specified Risk difference
residuals_phregr

Residuals for Proportional Hazards Regression Models
riskDiffExactPValue

P-Value for Exact Unconditional Test of Risk Difference
rmpowerequiv

Power for Equivalence in Restricted Mean Survival Time Difference
rmpower1s

Power for One-Sample Restricted Mean Survival Time
rmsamplesize

Sample Size for Difference in Restricted Mean Survival Times
rmdiff

Estimate of Restricted Mean Survival Time Difference
riskRatioExactCI

Exact Unconditional Confidence Interval for Risk Ratio
riskDiffExactCI

Exact Unconditional Confidence Interval for Risk Difference
riskRatioExactPValue

P-Value for Exact Unconditional Test of Risk Ratio
rmest

Estimate of Restricted Mean Survival Time
rmpower

Power for Difference in Restricted Mean Survival Times
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
rmst

Restricted Mean Survival Time
rmsamplesizeequiv

Sample Size for Equivalence in Restricted Mean Survival Time Difference
runShinyApp_lrstat

Run Shiny App
rmsamplesize1s

Sample Size for One-Sample Restricted Mean Survival Time
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
six

The repeated measures data from the "Six Cities" study of the health effects of air pollution (Ware et al. 1984).
simon2stage

Simon's Two-Stage Design
simonBayesAnalysis

Analysis of Simon's Bayesian Basket Trials
simonBayesSim

Simulation of Simon's Bayesian Basket Trials
survQuantile

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

Urinary tract infection data from the logistf package
samplesizeRiskRatioExactEquiv

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

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

The randomized clinical trial SHIVA data in long format from the ipcwswitch package
samplesizeRiskRatioExact

Sample Size for Exact Unconditional Test of Risk Ratio
zstatRateDiff

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

Update Graph for Graphical Approaches
zph_phregr

Assess Proportional Hazards Assumption Based on Scaled Schoenfeld Residuals
zstatRiskDiff

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

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

Singular Value Decomposition of a Matrix
survfit_phregr

Survival Curve for Proportional Hazards Regression Models
zstatRiskRatio

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

Tobin's tobit data from the survival package
zstatRateRatio

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