design_experiment: Helper function to generate code to run an experiment

Description Usage Arguments Details

View source: R/design.R

Description

Helper function to generate code to run an experiment

Usage

1
2
3
4
5
6
7
8
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


loewesadditivity documentation built on March 26, 2020, 8:14 p.m.