Package: TwoArmSurvSim 0.2

Bo Zhang

TwoArmSurvSim: Simulate Survival Data for Randomized Clinical Trials

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.

Authors:Bo Zhang [cre, aut], Yi Zhong [aut, ctb], Ginny Peng [aut, ctb], Bin Yao [aut, ctb]

TwoArmSurvSim_0.2.tar.gz
TwoArmSurvSim_0.2.tar.gz(r-4.5-noble)TwoArmSurvSim_0.2.tar.gz(r-4.4-noble)
TwoArmSurvSim_0.2.tgz(r-4.4-emscripten)TwoArmSurvSim_0.2.tgz(r-4.3-emscripten)
TwoArmSurvSim.pdf |TwoArmSurvSim.html
TwoArmSurvSim/json (API)

# Install 'TwoArmSurvSim' in R:
install.packages('TwoArmSurvSim', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.00 score 2 scripts 131 downloads 23 exports 21 dependencies

Last updated 4 years agofrom:51d1274128. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 03 2024
R-4.5-linuxOKDec 03 2024

Exports:censor_survcensordatacolumn_freqcov_simudummy_convertLambdaCensorLambdaCensor_betapwlinear_accrualobjfunctionobjfunction_betapwprojectionprojection_simulationrandomize_trtrandomize_trt2run_simulationrun_simulation_simsurvself_blockrandstep_accrualsurv_data_simulationtrial_data_simulationweibullsimweibullsim_betapwweibullsim_pw

Dependencies:blockrandclidplyrfansigenericsgluelatticelifecyclemagrittrMatrixpillarpkgconfigR6rlangsimsurvsurvivaltibbletidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
censor survival eventcensor_surv
Censor Events Given a Fixed Dropout Ratecensordata
Calculate the Combination Frequency of Several Columns within a Data Framecolumn_freq
Simulate Covariates Matrix Based on User Provided Factor Informationcov_simu
Convert Categorical Data to Dummy Variablesdummy_convert
Find the Censor Hazard Function Parameter for Proportional Hazard Model Given a Fixed Dropout RateLambdaCensor
Find the Censor Hazard Function Parameter for Nonproportional Hazard Model Given a Fixed Dropout RateLambdaCensor_betapw
Simulate Accrual Time Where the Accrual Rate is Linearly Increasedlinear_accrual
Objective Function for the Finding of Censor Hazard Function Parameter for Proportional Hazard Modelobjfunction
Objective Function for The Finding of Censor Hazard Function Parameter for Nonproportional Hazard Modelobjfunction_betapw
Event and Trial Projectionprojection
Project Final Event Numbers or Trial Stop Time Based on Interim Analysis Dataprojection_simulation
Generate Block Randomized Treatment Label Based on Covariates Matrixrandomize_trt
Generate Block Randomized Treatment Label Based on Covariates Matrix for Two Arm Trialrandomize_trt2
Run Clinical Trial Simulations Based on User Defined Trial Settingsrun_simulation
Run Clinical Trial Simulations Based on survival data generated by simsurv packagerun_simulation_simsurv
Block Randomizationself_blockrand
Simulate Accrual Timestep_accrual
Simulate Survival Datasurv_data_simulation
Simulate Clinical Trial with Accrual Time and Trial Stop Rulestrial_data_simulation
Simulate Event Time with weibull Hazard Functionweibullsim
Simulate Event Time with weibull Hazard Function and Piecewise Hazard Ratiosweibullsim_betapw
Simulate event time with weibull hazard function. The parameters can be piecewise.weibullsim_pw