Learn R Programming

TwoArmSurvSim (version 0.2)

Simulate Survival Data for Randomized Clinical Trials

Description

A system to simulate clinical trials with time to event endpoints. Event simulation is based on Cox models allowing for covariates in addition to the treatment or group factor. Specific drop-out rates (separate from administrative censoring) can be controlled in the simulation. Other features include stratified randomization, non-proportional hazards, different accrual patterns, and event projection (timing to reach the target event) based on interim data.

Copy Link

Version

Install

install.packages('TwoArmSurvSim')

Monthly Downloads

134

Version

0.2

License

GPL (>= 2)

Maintainer

Bo Zhang

Last Published

February 26th, 2021

Functions in TwoArmSurvSim (0.2)

cov_simu

Simulate Covariates Matrix Based on User Provided Factor Information
objfunction

Objective Function for the Finding of Censor Hazard Function Parameter for Proportional Hazard Model
linear_accrual

Simulate Accrual Time Where the Accrual Rate is Linearly Increased
self_blockrand

Block Randomization
randomize_trt2

Generate Block Randomized Treatment Label Based on Covariates Matrix for Two Arm Trial
randomize_trt

Generate Block Randomized Treatment Label Based on Covariates Matrix
LambdaCensor_betapw

Find the Censor Hazard Function Parameter for Nonproportional Hazard Model Given a Fixed Dropout Rate
weibullsim_pw

Simulate event time with weibull hazard function. The parameters can be piecewise.
weibullsim_betapw

Simulate Event Time with weibull Hazard Function and Piecewise Hazard Ratios
weibullsim

Simulate Event Time with weibull Hazard Function
censor_surv

censor survival event
projection

Event and Trial Projection
projection_simulation

Project Final Event Numbers or Trial Stop Time Based on Interim Analysis Data
dummy_convert

Convert Categorical Data to Dummy Variables
LambdaCensor

Find the Censor Hazard Function Parameter for Proportional Hazard Model Given a Fixed Dropout Rate
step_accrual

Simulate Accrual Time
run_simulation

Run Clinical Trial Simulations Based on User Defined Trial Settings
run_simulation_simsurv

Run Clinical Trial Simulations Based on survival data generated by simsurv package
censordata

Censor Events Given a Fixed Dropout Rate
surv_data_simulation

Simulate Survival Data
trial_data_simulation

Simulate Clinical Trial with Accrual Time and Trial Stop Rules
column_freq

Calculate the Combination Frequency of Several Columns within a Data Frame
objfunction_betpw

Objective Function for The Finding of Censor Hazard Function Parameter for Nonproportional Hazard Model