prepare_design function

Prepare design for experiment from a list of simulation parameter

Prepare design for experiment from a list of simulation parameter

prepare_design(option_list, tabular = TRUE)

Arguments

  • option_list: A list of options that is to be parsed
  • tabular: logical if output is needed in tabular form or list format

Returns

A list of parsed parameters for simulatr

Examples

opts <- list( n = rep(100, 2), p = c(20, 40), q = c("5, 5, 4", "10, 5, 5"), m = c(5, 5), relpos = c("1; 2, 4; 3", "1, 2; 3, 4; 5"), gamma = c(0.2, 0.4), R2 = c("0.8, 0.9, 0.7", "0.6, 0.8, 0.7"), ypos = c("1, 4; 2, 5; 3", "1; 2, 4; 3, 5"), ntest = rep(1000, 2) ) design <- prepare_design(opts) design
  • Maintainer: Raju Rimal
  • License: GPL-3
  • Last published: 2021-09-17