prepare_design: Prepare design for experiment from a list of simulation...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Prepare design for experiment from a list of simulation parameter

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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

simulatr/simrel documentation built on Sept. 15, 2021, 12:44 a.m.