inst/nami_simulations/simulation_RCT_permtest.R

# 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", "batchtools", "multcomp", "coin", "survival")
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")

## Continuous
source("simulation_code/RCT_permtest/continuous/experiments.R", chdir = TRUE)

## Binary 
source("simulation_code/RCT_permtest/binary/experiments.R", chdir = TRUE)

## Survival
source("simulation_code/RCT_permtest/survival/experiments.R", chdir = TRUE)

Try the tram package in your browser

Any scripts or data that you put into this service are public.

tram documentation built on Nov. 23, 2026, 5:07 p.m.