Nothing
############# Experiments SURVIVAL
#----
# 0) Setup
#----
source("../def.R")
NLIST <- 131L
### censoring prob = .3, .7
BETACENSLIST <- qlogis(1 - c(.3, .7))
PROBNAM <- "survival"
source("../../helpers.R")
set.seed(SEED)
setups <- expand.grid(repl = seq(1, REPL), N = NLIST, P = PLIST,
truetau = TAULIST, lambda = LAMBDALIST, betacens = BETACENSLIST)
setups$seed <- round(runif(nrow(setups)) * 1e8)
#----
# 1) Load helper functions & libraries
#----
pkgs <- c("tram", "batchtools", "multcomp", "survival", "coin")
get_packages(pkgs)
generate_data <- function(...) generate_surv(..., RCT = TRUE)
fun <- function(job, N, P, truetau, lambda, betacens, seed, ...) {
d <- generate_data(N = N, P = P, parm = c(truetau = truetau, lambda = lambda,
betacens = betacens), seed = seed)
return(d)
}
#----
# 2) Define extra methods
#----
methods <- list("coxph_w" = fun_coxph_w,
"coxph_wx" = fun_coxph_wx,
"mmlt_coxph" = fun_mmlt_coxph)
if (TESTONLY) {
d <- fun(1, 100, 5, truetau = 0, lambda = 0.5, betacens = qlogis(.5), seed = 1)
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.