# Clinical Trial Simulator

## Documentation for package ‘TrialSimulator’ version 1.0.0

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

## Help Pages

arm | Define an Arm
Arms | Class of Arm
calendarTime | Triggering condition by calendar time
controller | Define a Controller
Controllers | Class of Controller
CorrelatedPfsAndOs3 | Generate PFS and OS using the three-states model
CorrelatedPfsAndOs4 | Generate PFS, OS and objective response using the four-states model
default_action | default action function for dry run of a trial
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 observations of an endpoint
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
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 of a Trial
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 ill-death model
rconst | Generate constant variable
solveMixtureExponentialDistribution | Solve parameters in a mixture exponential distribution
solveThreeStateModel | Solve parameters in a three-state ill-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
weibullDropout | Calculate Parameters of Weibull Distribution as a Dropout Method