Nothing
############# Experiments CONTINUOUS
#----
# 0) Setup
#----
source("../def.R")
NLIST <- 41
PROBNAM <- "continuous"
source("../../helpers.R")
set.seed(SEED)
setups <- expand.grid(repl = seq(1, REPL), N = NLIST, P = PLIST, truetau = TAULIST, lambda = LAMBDALIST)
setups$seed <- round(runif(nrow(setups)) * 1e8)
#----
# 1) Load helper functions & libraries
#----
pkgs <- c("tram", "batchtools", "multcomp", "coin")
get_packages(pkgs)
generate_data <- function(...) generate_cont(..., RCT = TRUE)
#----
# 2) Define methods
#----
methods <- list("linear_w" = fun_linear_w,
"linear_wx" = fun_linear_wx,
"mmlt_linear" = fun_mmlt_linear)
if (TESTONLY) {
d <- fun(1, 100, 5, truetau = 0, lambda = 1, seed = 19724948)
print(lapply(methods, function(f) f(d)))
} else {
source("../../run_experiments.R")
}
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.