# Clinical Trial Simulation

## Documentation for package ‘simtrial’ version 1.0.2

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

## Help Pages

as_gt | Convert summary table to a gt object
as_gt.simtrial_gs_wlr | Convert summary table to a gt object
counting_process | Process survival data into counting process format
create_cut | Create a cutting function
create_test | Create a cutting test function
cut_data_by_date | Cut a dataset for analysis at a specified date
cut_data_by_event | Cut a dataset for analysis at a specified event count
early_zero | Zero early weighting function
ex1_delayed_effect | Time-to-event data example 1 for non-proportional hazards working group
ex2_delayed_effect | Time-to-event data example 2 for non-proportional hazards working group
ex3_cure_with_ph | Time-to-event data example 3 for non-proportional hazards working group
ex4_belly | Time-to-event data example 4 for non-proportional hazards working group
ex5_widening | Time-to-event data example 5 for non-proportional hazards working group
ex6_crossing | Time-to-event data example 6 for non-proportional hazards working group
fh | Fleming-Harrington weighting function
fit_pwexp | Piecewise exponential survival estimation
get_analysis_date | Derive analysis date for interim/final analysis given multiple conditions
get_cut_date_by_event | Get date at which an event count is reached
maxcombo | MaxCombo test
mb | Magirr and Burman weighting function
mb_delayed_effect | Simulated survival dataset with delayed treatment effect
milestone | Milestone test for two survival curves
multitest | Perform multiple tests on trial data cutting
randomize_by_fixed_block | Permuted fixed block randomization
rmst | RMST difference of 2 arms
rpwexp | The piecewise exponential distribution
rpwexp_enroll | Generate piecewise exponential enrollment
sim_fixed_n | Simulation of fixed sample size design for time-to-event endpoint
sim_gs_n | Simulate group sequential designs with fixed sample size
sim_pw_surv | Simulate a stratified time-to-event outcome randomized trial
summary.simtrial_gs_wlr | Summary of group sequential simulations.
to_sim_pw_surv | Convert enrollment and failure rates from 'sim_fixed_n()' to 'sim_pw_surv()' format
wlr | Weighted logrank test
wlr.counting_process | Weighted logrank test
wlr.default | Weighted logrank test
wlr.tte_data | Weighted logrank test