# MOSS package version >= 1.1.2
devtools::install_github("wilsoncai1992/MOSS")
install.packages("survtmle")
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