# Clinical Trial Simulator

## Documentation for package ‘TrialSimulator’ version 1.20.1

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

add_arms | Adding One or More Arms to a Trial
arm | Define an Arm
Arms | Class of Arm
calendarTime | Triggering Condition by Calendar Time
controller | Define a Controller
Controllers | Class of Controller
CorrelatedPfsAndOs2 | Generate Correlated PFS and OS Using Gumbel Copula
CorrelatedPfsAndOs3 | Generate Correlated PFS and OS Using the Three-States Illness-Death Model
CorrelatedPfsAndOs4 | Generate Correlated PFS, OS and Objective Response
crossover | Crossover at a Milestone
doNothing | An Action Function that Does Nothing
DynamicRNGFunction | A wrapper of random number generator.
endpoint | Define Endpoints
Endpoints | Class of Endpoint
enrollment | Triggering Condition by Number of Randomized Patients
eventNumber | Triggering Condition by Number of Events or Non-missing Observations of an Endpoint
expandRegimen | Expand regimen trajectory into long format
fitCoxph | Fit Cox Proportional Hazard Ratio model
fitFarringtonManning | Farrington-Manning test for rate difference
fitLinear | Fit linear regression model
fitLogistic | Fit logistic regression model
fitLogrank | Carry out log rank test
getAdaptiveDesignOutput | Get simulation output in the vignette adaptiveDesign.Rmd
getDoseRangingOutput | Get simulation output in the vignette doseRanging.Rmd
getFixedDesignOutput | Get simulation output in the vignette fixedDesign.Rmd
GraphicalTesting | Class of GraphicalTesting
GroupSequentialTest | Class of GroupSequentialTest
listener | Define a Listener
Listeners | Class of Listener
milestone | Define a Milestone
Milestones | Class of Milestones
PiecewiseConstantExponentialRNG | Generate Time-to-Event Endpoint from Piecewise Constant Exponential Distribution
plot.milestone_time_summary | Plot Triggering Time of Milestones in Simulated Trials
plot.three_state_model | Plot result of three-state illness-death model
qPiecewiseExponential | Quantile Function of Piecewise Exponential Distribution
rconst | Generate Constant Variable
regimen | Define a Regimen
Regimens | Class of Regimens
remove_arms | Removing One or More Arms From a Trial
resize | Resizing a Trial
set_duration | Extending Duration of a Trial
solveMixtureExponentialDistribution | Solve Parameters in a Mixture Exponential Distribution
solvePiecewiseConstantExponentialDistribution | Compute Constant Rates of Piecewise Exponential Distribution
solveThreeStateModel | Solve Parameters in a Three-State Illness-death Model
StaggeredRecruiter | Generate Enrollment Time from Piecewise Constant Uniform Distribution
summarizeDataFrame | Summarize A Data Frame
summarizeMilestoneTime | Summary of Milestone Time from Simulated Trials
trial | Define a Trial
Trials | Class of Trial
update_generator | Updating Data Generators of One or More Endpoints in an Arm
update_sample_ratio | Updating Sampling Ratios of Existing Arms in a Trial
weibullDropout | Calculate Parameters of Weibull Distribution as a Dropout Method