Learn R Programming

lrstat

The goal of lrstat is to calculate power and sample size under non-proportional hazards using weighted log-rank tests both analytically and using simulations in a time-to-event group-sequential trial.

It has built-in capabilities to use error-spending functions and can calcualte power, accrual duration, follow-up duration, and absolute accrual rates for the Fleming-Harrington's class of weighting functions.

Example

This is a basic example which shows you how to solve a common problem:

library(lrstat)
## basic example code for a two-stage group sequential trial with interim
## analysis at 80% of total number of events using Lan-DeMets O'Brien-Fleming
## error-spending. The accrual has a ramp-up periof of 9 months before 
## reaching 26 patients per month. The survival distribution for the treatment
## group has a delay effect of 6 months and a hazard ratio 0.58 after the delay. 
## The annual dropout rate is 5%. The accrual duration is 22 months. 
## The follow-up duration is 18 months for the last randomized patients. 
## The FH(0,1) weighted log-rank test is used for power calculation. 

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,
        numSubintervals = 2000)

Copy Link

Version

Install

install.packages('lrstat')

Monthly Downloads

731

Version

0.2.15

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kaifeng Lu

Last Published

July 14th, 2025

Functions in lrstat (0.2.15)

ClopperPearsonCI

Clopper-Pearson Confidence Interval for One-Sample Proportion
caltime

Calendar Times for Target Number of Events
accrual

Number of Enrolled Subjects
binary_tte_sim

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

Adaptive Design at an Interim Look
ad

Number of Patients Enrolled During an Interval and Having an Event by Specified Calendar Times
errorSpent

Error Spending
BOINTable

BOIN Decision Table for Dose-Finding Trials
covrmst

Covariance Between Restricted Mean Survival Times
fstdmix

Adjusted p-Values for Standard Mixture Gatekeeping Procedures
fmodmix

Adjusted p-Values for Modified Mixture Gatekeeping Procedures
fquantile

The Quantiles of a Survival Distribution
fseqbon

Group Sequential Trials Using Bonferroni-Based Graphical Approaches
fadjpdun

Adjusted p-Values for Dunnett-Based Graphical Approaches
fadjpsim

Adjusted p-Values for Simes-Based Graphical Approaches
aml

Acute myelogenous leukemia survival data from the survival package
getADRCI

Repeated Confidence Interval After Adaptation
fadjpbon

Adjusted p-Values for Bonferroni-Based Graphical Approaches
exitprob

Stagewise Exit Probabilities
float_to_fraction

Converting a decimal to a fraction
findInterval3

Find Interval Numbers of Indices
getAccrualDurationFromN

Accrual Duration to Enroll Target Number of Subjects
getCP

Conditional Power Allowing for Varying Parameter Values
ftrunc

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

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

Power and Sample Size for a Generic Group Sequential Design
getDesignMeanDiff

Group Sequential Design for Two-Sample Mean Difference
getDesignMeanDiffCarryover

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

Power and Sample Size for Cohen's kappa
getDesignEquiv

Power and Sample Size for a Generic Group Sequential Equivalence Design
getDesignMeanDiffEquiv

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

Weight Matrix for All Intersection Hypotheses
getDesignMeanDiffCarryoverEquiv

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

Confidence Interval After Adaptation
getDesignLogistic

Power and Sample Size for Logistic Regression
getCI

Confidence Interval After Trial Termination
getBound

Efficacy Boundaries for Group Sequential Design
getDesignFisherExact

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

Power and Sample Size for One-Way ANOVA
getDesignANOVAContrast

Power and Sample Size for One-Way ANOVA Contrast
getDesignMeanRatioEquiv

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

Group Sequential Design for Mean Difference in 2x2 Crossover
getDesignMeanDiffMMRM

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

Group Sequential Design for Mean Ratio in 2x2 Crossover
getDesignMeanDiffXOEquiv

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

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

Group Sequential Design for Equivalence in Paired Mean Difference
getDesignOddsRatioEquiv

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

Group Sequential Design for One-Sample Mean
getDesignOddsRatio

Group Sequential Design for Two-Sample Odds Ratio
getDesignRiskRatioExact

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

Power and Sample Size for Exact Unconditional Test for Equivalence in Risk 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
getDesignPairedMeanDiff

Group Sequential Design for Paired Mean Difference
getDesignPairedMeanRatioEquiv

Group Sequential Design for Equivalence in Paired Mean Ratio
getDesignMeanRatio

Group Sequential Design for Two-Sample Mean Ratio
getDesignPairedMeanRatio

Group Sequential Design for Paired Mean Ratio
getDesignPairedPropMcNemar

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

Power and Sample Size for One-Sample Multinomial Response
getDesignSlopeDiffMMRM

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

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

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

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

Power and Sample Size for Repeated-Measures ANOVA
getDesignOneSlope

Group Sequential Design for One-Sample Slope
getDesignRiskDiffExactEquiv

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

Group Sequential Design for Two-Sample Slope Difference
getDesignRiskRatioFM

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

Hedges' g Effect Size
immdef

Simulated CONCORDE trial data from the rpsftm package
getDesignRiskRatio

Group Sequential Design for Two-Sample Risk Ratio
getDesignOneProportion

Group Sequential Design for One-Sample Proportion
ingots

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

Power for Equivalence in Milestone Survival Probability Difference
kmpower1s

Power for One-Sample Milestone Survival Probability
getRCI

Repeated Confidence Interval for Group Sequential Design
getNeventsFromHazardRatio

Required Number of Events Given Hazard Ratio
getDesignWilcoxon

Group Sequential Design for Two-Sample Wilcoxon Test
getDurationFromNevents

Range of Accrual Duration for Target Number of Events
getDesignRiskRatioEquiv

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

Power and Sample Size for Two-Way ANOVA
getDesignTwoOrdinal

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

Group Sequential Design for Two-Sample Risk Difference
getDesignUnorderedBinom

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

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

Log-Rank Test Simulation
lrschoenfeld

Schoenfeld Method for Log-Rank Test Sample Size Calculation
kmsamplesize

Sample Size for Difference in Milestone Survival Probabilities
hazard_pd

Hazard Function for Progressive Disease (PD)
hazard_sub

Hazard Function for Sub Population
kmdiff

Estimate of Milestone Survival Difference
kmsamplesize1s

Sample Size for One-Sample Milestone Survival Probability
lrstat1

Number of Subjects Having an Event and Log-Rank Statistic for a hypothesized hazard ratio at a given calendar time
kmest

Kaplan-Meier Estimates of Survival Curve
lrtest

Log-Rank Test of Survival Curve Difference
kmpower

Power for Difference in Milestone Survival Probabilities
kmsamplesizeequiv

Sample Size for Equivalence in Milestone Survival Probability Difference
kmstat

Stratified Difference in Milestone Survival Probabilities
lrpowerequiv

Power for Equivalence in Hazard Ratio
lrpower

Log-Rank Test Power
getDesignUnorderedMultinom

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

Integrated Event Probability Over an Interval With Constant Hazard
lrsamplesize

Log-Rank Test Sample Size
lrsamplesizeequiv

Sample Size for Equivalence in Hazard Ratio
heart

Stanford heart transplant data from the survival package
mTPI2Table

mTPI-2 Decision Table
param_accrualIntensity

Parameter Description: accrualIntensity
mnOddsRatioCI

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

Parameter Description: lambda2_stratified
nbsamplesizeequiv

Sample Size for Equivalence in Negative Binomial Rate Ratio
param_lambda2

Parameter Description: lambda2
param_accrualTime

Parameter Description: accrualTime
param_fixedFollowup

Parameter Description: fixedFollowup
param_estimateHazardRatio

Parameter Description: estimateHazardRatio
lrsim3a

Log-Rank Test Simulation for Three Arms
lrsimsub

Log-Rank Test Simulation for Enrichment Design
logisregr

Logistic Regression Models for Binary Data
liferegr

Parametric Regression Models for Failure Time Data
kmstat1

Milestone Survival Probability by Stratum
lrsim2e

Log-Rank Test Simulation for Two Endpoints
mnRiskDiffCI

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

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

Log-Rank Test Simulation for Two Endpoints and Three Arms
param_criticalValues

Parameter Description: criticalValues
kmsurv

Kaplan-Meier Survival Probability Based on Pooled Sample
param_efficacyStopping

Parameter Description: efficacyStopping
param_futilityBounds

Parameter Description: futilityBounds
param_followupTime

Parameter Description: followupTime
nbstat

Negative Binomial Rate Ratio
param_rho1

Parameter Description: rho1
param_piecewiseSurvivalTime

Parameter Description: piecewiseSurvivalTime
powerFisherExact

Power for Fisher's Exact Test for Two Proportions
powerOnePropExact

Power for Binomial One-Sample Exact Test
lrstat-package

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

Negative Binomial Rate Ratio by Stratum
nbsamplesize1s

Sample Size for One-Sample Negative Binomial Rate
nevent

Number of Subjects Having an Event
nbsamplesize

Sample Size for Negative Binomial Rate Ratio
param_gamma1

Parameter Description: gamma1
param_gamma1_stratified

Parameter Description: gamma1_stratified
param_minFollowupTime

Parameter Description: minFollowupTime
param_gamma2

Parameter Description: gamma2
param_typeOfComputation

Parameter Description: typeOfComputation
pevent

Probability of Having an Event
param_gamma2_stratified

Parameter Description: gamma2_stratified
param_userAlphaSpending

Parameter Description: userAlphaSpending
param_maxFollowupTime

Parameter Description: maxFollowupTime
mnRateDiffCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Rate Difference
print.designANOVA

Print Power and Sample Size Results for One-Way ANOVA
mnRateRatioCI

Miettinen-Nurminen Score Confidence Interval for Two-Sample Rate Ratio
print.designANOVAContrast

Print Power and Sample Size Results for a Single Contrast in One-Way ANOVA
lrstat

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

Parameter Description: typeBetaSpending
param_lambda1

Parameter Description: lambda1
param_lambda1_stratified

Parameter Description: lambda1_stratified
param_typeAlphaSpending

Parameter Description: typeAlphaSpending
nevent2

Number of Subjects Having an Event by Calendar Time
nbpower1s

Power for One-Sample Negative Binomial Rate
nbpowerequiv

Power for Equivalence in Negative Binomial Rate Ratio
phregr

Proportional Hazards Regression Models
param_accrualDuration

Parameter Description: accrualDuration
pbvnorm

Distribution Function of the Standard Bivariate Normal
pd

Integrated Event Probability Over an Interval
powerRiskRatioExact

Power for Exact Unconditional Test of Risk Ratio
powerRiskDiffExactEquiv

Power for Exact Unconditional Test of Equivalence in Risk Difference
print.designMeanDiffMMRM

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

Print Power and Sample Size Results for Equivalence in Two-Sample Mean Difference
powerOneRateExact

Power for Poisson One-Sample Exact Test
powerRiskDiffExact

Power for Exact Unconditional Test of Risk Difference
print.designOneSlope

Print Power and Sample Size Results for One-Sample Slope
nbpower

Power for Negative Binomial Rate Ratio
natrisk

Number of Subjects at Risk
print.designOneProportion

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

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

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

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

Print Power and Sample Size Results for Cochran-Armitage Trend Test for Ordered Multi-Sample Binomial Response
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.designMeanRatioXO

Print Power and Sample Size Results for Mean Ratio 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.designPairedPropMcNemar

Print Power and Sample Size Results for McNemar's Test for Paired Proportions
powerRiskRatioExactEquiv

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

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

Print the Point Estimate and Confidence Interval
param_alpha

Parameter Description: alpha
param_allocationRatioPlanned

Parameter Description: allocationRatioPlanned
print.designRiskRatio

Print Power and Sample Size Results for Two-Sample Risk Ratio
param_gamma

Parameter Description: gamma
param_futilityStopping

Parameter Description: futilityStopping
print.BOINTable

Print the Decision Table for the BOIN Design
print.designMeanRatioEquiv

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

Print Power and Sample Size Results for Two-Sample Mean Ratio
param_informationRates

Parameter Description: informationRates
param_hazardRatioH0

Parameter Description: hazardRatioH0
param_lambda

Parameter Description: lambda
param_kMax

Parameter Description: kMax
param_rho2

Parameter Description: rho2
param_stratumFraction

Parameter Description: stratumFraction
param_parameterAlphaSpending

Parameter Description: parameterAlphaSpending
param_parameterBetaSpending

Parameter Description: parameterBetaSpending
ptpwexp

Distribution Function of Truncated Piecewise Exponential Distribution
print.designRiskRatioEquiv

Print Power and Sample Size Results for Equivalence in Two-Sample Risk Ratio
patrisk

Probability of Being at Risk
param_userBetaSpending

Parameter Description: userBetaSpending
print.designAgreement

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

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

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

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

Print Power and Sample Size Results for Equivalence in Two-Sample Risk Difference
residuals_liferegr

Residuals for Parametric Regression Models for Failure Time Data
print.mTPI2Table

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

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

REML Estimates of Individual Proportions With Specified Risk Ratio
pwexpcuts

Piecewise Exponential Approximation to a Survival Distribution
repeatedPValue

Repeated p-Values for Group Sequential Design
print.designMeanDiff

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

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

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

Residuals for Proportional Hazards Regression Models
simon2stage

Simon's Two-Stage Design
zstatRateRatio

Miettinen-Nurminen Score Test Statistic for Two-Sample Rate Ratio
print.lrpower

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

Print logisregr Object
shilong

The randomized clinical trial SHIVA data in long format from the ipcwswitch package
print.rmpower1s

Print Power and Sample Size Results for One-Sample Restricted Mean Survival Time
zstatRateDiff

Miettinen-Nurminen Score Test Statistic for Two-Sample Rate Difference
print.adaptDesign

Print Adaptive Group Sequential Design
print.design

Print Group Sequential Design
remlRateRatio

REML Estimates of Individual Rates With Specified Rate Ratio
remlRiskDiff

REML Estimates of Individual Proportions With Specified Risk difference
print.rmpowerequiv

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

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

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

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

Print Power and Sample Size Results for Mean Difference in 2x2 Crossover
rmdiff

Estimate of Restricted Mean Survival Time Difference
simonBayesSim

Simulation of Simon's Bayesian Basket Trials
print.designOddsRatio

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

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

Print Power and Sample Size Results for Milestone Survival Difference
rmest

Estimate of Restricted Mean Survival Time
rmsamplesize1s

Sample Size for One-Sample Restricted Mean Survival Time
print.kmpower1s

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

Print phregr Object
print.designPairedMeanDiffEquiv

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

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

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

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

Print Power and Sample Size Results for One-Sample Mean
rmsamplesizeequiv

Sample Size for Equivalence in Restricted Mean Survival Time Difference
print.designTwoOrdinal

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

Print Power and Sample Size Results for Two-Way ANOVA
simonBayesAnalysis

Analysis of Simon's Bayesian Basket Trials
zstatRiskDiff

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

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

Restricted Mean Survival Time
svdcpp

Singular Value Decomposition of a Matrix
rmpower

Power for Difference in Restricted Mean Survival Times
rmpowerequiv

Power for Equivalence in Restricted Mean Survival Time Difference
rmsamplesize

Sample Size for Difference in Restricted Mean Survival Times
print.designSlopeDiff

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

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

Print Simulation Results for Log-Rank Tests
samplesizeRiskDiffExactEquiv

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

Sample Size for Fisher's Exact Test for Two Proportions
print.lrpowerequiv

Print Power and Sample Size Results for Equivalence in Hazard Ratio
pwexploglik

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

QR Decomposition of a Matrix
qtpwexp

Quantile Function of Truncated Piecewise Exponential Distribution
rawdata

A simulated time-to-event data set with 10 replications
samplesizeOnePropExact

Sample Size for Binomial One-Sample Exact Test
rmpower1s

Power for One-Sample Restricted Mean Survival Time
print.kmpowerequiv

Print Power and Sample Size Results for Equivalence in Milestone Survival Probability Difference
samplesizeRiskRatioExactEquiv

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

Stratified Difference in Restricted Mean Survival Times
print.liferegr

Print liferegr Object
sexagg

Urinary tract infection data from the logistf package
print.nbpower1s

Print Power and Sample Size Results for One-Sample Negative Binomial Rate
samplesizeRiskRatioExact

Sample Size for Exact Unconditional Test of Risk Ratio
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
print.nbpowerequiv

Print Power and Sample Size Results for Equivalence in Negative Binomial Rate Ratio
remlOddsRatio

REML Estimates of Individual Proportions With Specified Odds Ratio
remlRateDiff

REML Estimates of Individual Rates With Specified Rate Difference
riskDiffExactCI

Exact Unconditional Confidence Interval for Risk Difference
riskDiffExactPValue

P-Value for Exact Unconditional Test of Risk Difference
rmstat1

Restricted Mean Survival Time by Stratum
survQuantile

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

Random Multivariate Normal Generation
riskRatioExactCI

Exact Unconditional Confidence Interval for Risk Ratio
riskRatioExactPValue

P-Value for Exact Unconditional Test of Risk Ratio
runShinyApp_lrstat

Run Shiny App
survsplit

Split a survival data set at specified cut points
rtpwexp

Random Number Generation Function of Truncated Piecewise Exponential Distribution
survfit_phregr

Survival Curve for Proportional Hazards Regression Models
samplesizeOneRateExact

Sample Size for Poisson One-Sample Exact Test
samplesizeRiskDiffExact

Sample Size for Exact Unconditional Test of Risk Difference
updateGraph

Update Graph for Graphical Approaches
zstatOddsRatio

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