| simulate_data | R Documentation |
simulate_data() is a discoverable dispatcher. Direct verbs remain the
preferred interface because they provide explicit, documented arguments.
simulate_data(type, ...)
type |
Dispatchable simulator name, taken from the |
... |
Arguments passed on to the selected canonical simulation verb,
including |
Whatever the selected verb returns, which for every dispatchable
entry is a simulab_sim base data.frame, or a plain list of them when
batch is given.
result <- simulate_data("ttest", n_a = 30, n_b = 30, mean_a = 0, mean_b = 0.5, seed = 1)
head(result)
# Five independent datasets from one call.
datasets <- simulate_data("ttest", n_a = 30, n_b = 30, mean_a = 0,
mean_b = 0.5, seed = 1, batch = 5)
length(datasets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.