Skip to content

Reproduce the simulations in Cai W, van der Laan MJ (2019+). One-step TMLE for time-to-event outcomes.

License

Notifications You must be signed in to change notification settings

guhjy/MOSS-simulation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation of Cai W, van der Laan MJ (2019+). One-step TMLE for time-to-event outcomes.

Pre-requisites

# MOSS package version >= 1.1.2
devtools::install_github("wilsoncai1992/MOSS")
install.packages("survtmle")

Instructions

To reproduce the simulation section

cd ./code_simulation/
# run simulation
R CMD BATCH ./run_simulation.R
mkdir ./output/
mv ./df_metric.rda ./output/df_metric.rda
# create plots
R CMD BATCH ./plot_result.R
# the plots will be saved in `./code_simulation/output/` after the script

To reproduce the real data analysis section

cd ./code_mgus2/
R CMD BATCH ./run_simulation.R
# the plots will be saved in `./code_mgus2/` after the script

About

Reproduce the simulations in Cai W, van der Laan MJ (2019+). One-step TMLE for time-to-event outcomes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%