Nothing
# Per default a test setup is run
# Behavior can be changed by setting the following to FALSE
TESTONLY <- TRUE
## All required packages available?
pkgs <- c("tram", # For an implementation of NAMI
"multcomp", # To conduct inference
"survival", # To define survival outcomes
"randomForest", # To estimate propensity score
"WeightIt", # To do propensity score weighting
"tmle", # To run TMLE approach
"mlogit", # To estimate nuisance models in TMLE
"polspline", # To estimate nuisance models in TMLE
"SuperLearner", # To estimate nuisance models in TMLE
"earth", # To estimate nuisance models in TMLE
"batchtools", # To run study
"tictoc", # To assess runtime
"remotes" # To install R packages on github
)
rpkgs <- sapply(pkgs, require, character.only = TRUE)
if (!all(rpkgs)) sapply(pkgs[!rpkgs], install.packages)
rpkgs <- sapply(pkgs, require, character.only = TRUE)
if (!all(rpkgs)) stop("could not attach all required packages")
if (!require("causl")) remotes::install_github("rje42/causl")
if (!require("concrete")) remotes::install_github("imbroglio-dc/concrete")
#### RESULTS DANDL
## Continuous
source("simulation_code/observational/sim_dandl/continuous/experiments.R", chdir = TRUE)
## Binary
source("simulation_code/observational/sim_dandl/binary/experiments.R", chdir = TRUE)
## Survival
if (require("concrete")) {
source("simulation_code/observational/sim_dandl/survival/experiments.R", chdir = TRUE)
}
#### RESULTS FRUGAL
if (require("causl")) {
source("simulation_code/observational/sim_frugal/run_causl_experiment.R", chdir = TRUE)
}
#### RESULTS MISSPEC
if (!TESTONLY) {
source("simulation_code/observational/sim_misspec/run_misspec.R", chdir = TRUE)
}
#### RESULTS RUNTIME
source("simulation_code/observational/sim_dandl/binary/runtimes.R", chdir = TRUE)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.