View source: R/design_structure.R
| scenario_grid | R Documentation |
Crosses every combination of the supplied scenario values and repeats each
combination replications times, giving the grid a simulation study is run
over.
scenario_grid(..., replications = 1L, id = "scenario_id")
... |
Named vectors of scenario values, at least one, crossed with
|
replications |
Replications per scenario combination. A single positive
whole number, defaulting to |
id |
Name of the scenario identifier, numbering the distinct
combinations. A single non-empty string, defaulting to |
A plain base data.frame, not a simulab_sim, with one row per
scenario replication and columns: the scenario identifier named by id,
the integer replication counting from 1 within each scenario, and one
column per named argument.
scenario_grid(mean_b = c(0, 0.5), n_b = c(20, 40), replications = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.