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

Value

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
#> # A tibble: 2 × 9 #> n p q m relpos gamma R2 ypos ntest #> <dbl> <dbl> <named list> <dbl> <named list> <dbl> <named list> <named l> <dbl> #> 1 100 20 <dbl [3]> 5 <list [3]> 0.2 <dbl [3]> <list [31000 #> 2 100 40 <dbl [3]> 5 <list [3]> 0.4 <dbl [3]> <list [31000