prepare_design {simrel} | R Documentation |
Prepare design for experiment from a list of simulation parameter
Description
Prepare design for experiment from a list of simulation parameter
Usage
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
[Package simrel version 2.1.0 Index]