Description
Group Sequential Clinical Trial Designs for Composite Endpoints.
Description
Simulating composite endpoints with recurrent and terminal events under staggered entry, and for constructing one- and two-sample group sequential test statistics and monitoring boundaries based on the mean frequency function. Details will be available in an upcoming publication.
README.md
gsMeanFreq
Group sequential methods for composite endpoints based on mean frequency functions with recurrent and terminal events.
Description
The package implements simulation, estimation, and power calibration procedures for group sequential designs with composite endpoints, including recurrent events and terminal events. Both one-sample and two-sample settings are supported, with calendar-time monitoring.
Installation
install.packages("gsMeanFreq")
Example
This is a basic example which shows you how to solve a common problem:
library(gsMeanFreq)
# Simulate one-sample composite endpoint data
df <- Onesample.generate.sequential(
size = 200,
recruitment = 3,
calendar = 5,
random.censor.rate = 0.05,
seed = 123
)
OneSample.Estimator.sequential(data= df, t = c(1.5, 2.9, 4.6))