design_experiment {loewesadditivity}R Documentation

Helper function to generate code to run an experiment

Description

Helper function to generate code to run an experiment

Usage

design_experiment(
  levels_A = c(0, 1 * 2^(-4:2)),
  levels_B = c(0, 2 * 2^(-4:2)),
  par = c(beta_A = 1, beta_B = 2, gamma_A = 0.5, gamma_B = 0.5, tau_1 = 3, tau_2 = 0.05),
  n_rep = 1,
  n_sims = 100,
  noise_par = c(a0 = 3, a1 = 0.01)
)

Arguments

levels_A

levels of A used in the combination

levels_B

levels of B used in the combination

par

named vector of model parameters

n_rep

number of total repetitions of experiment

n_sims

number of simulations to run

noise_par

named vector with 'a0' and 'a1' which are used to generate noise for the GIA.

Details

prints out code to copy and paste into R to simulate the expected coverage of your experiment under your designed hypothesis


[Package loewesadditivity version 0.1.0 Index]