Git Product home page Git Product logo

simulation_super_efficient_ate's Introduction

Simulation of Benkeser D, Cai W, van der Laan MJ (2019+). A nonparametric super-efficient estimator of the average treatment effect.

Pre-requisites

devtools::install_github("tlverse/hal9001")
install.packages(c("glmnet", "dplyr", "drtmle", "tidyverse", "Rmpi", "doMPI", "SuperLearner", "ggpubr"))

Instructions

To reproduce the simulation section

# run simulation 1
cd ./code_iv/
R CMD BATCH test-oat_iv.R
mkdir ./output/
mv ./df_mc_result.rda ./output/df_mc_result.rda
# create plots
R CMD BATCH ./plot_results_paper.R
# the plots will be saved in `./code_iv/output/` after the script

# run simulation 2
cd ./code_ks/
R CMD BATCH test-oat_ks.R
mkdir ./output/
mv ./df_mc_result.rda ./output/df_mc_result.rda
# create plots
R CMD BATCH ./plot_results_paper.R
# the plots will be saved in `./code_ks/output/` after the script

To reproduce the real data analysis section

# run real data analysis
cd ./code_real_data/catnap/
R CMD BATCH run_npbootstrap.R
R CMD BATCH run_permutey.R
mkdir ./result_npboot
mkdir ./result_permutey
mv npbootstrap.rda ./result_npboot/npbootstrap.rda
mv permute_y.rda ./result_permutey/permute_y.rda
# create plots
R CMD BATCH ./plot.R
# the plots will be saved in `./code_real_data/result_npboot/` and `./code_real_data/result_permutey/` after the script

simulation_super_efficient_ate's People

Contributors

wilsoncai1992 avatar benkeser avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.