fill_out easily generates a set of design from a template function. redesign quickly generates a design from an existing one by resetting design variables internally.

fill_out(template, expand = TRUE, ...)

redesign(design, expand = TRUE, ...)

Arguments

template

a function which yields a design.

expand

boolean - if true, form the crossproduct of the ..., otherwise recycle them

...

Options sent to the template.

design

a design

Value

if set of designs is size one, the design, otherwise a `by`-list of designs.

Examples

d_template <- function(N=100) declare_design(declare_population(N=N)) vary_n <- fill_out(d_template, N=seq(30, 100, 10)) big_d <- fill_out(d_template, N=200) bigger_d <- redesign(big_d, N=1000) little_d <- redesign(big_d, N=seq(5,25,5))
# NOT RUN { # idea is to diagnose a list diagnose_design(little_d, ) # }