get_data | R Documentation |
Simulate Data Based on a Binomial Distribution
get_data(k, n, p, iter, type = c("matrix", "bhmbasket"))
k |
The number of baskets. |
n |
The sample size per basket. |
p |
Probabilities used to simulate the data |
iter |
The number of iterations in the simulation. Is ignored if
|
type |
Type of output. Use |
For type = "bhmbasket"
this is simply a wraper for
bhmbasket::simulateScenarios
.
If type = "matrix"
then a matrix is returned, if
type = "bhmbasket"
then an element with class scenario_list
.
get_data(k = 3, n = 20, p = c(0.2, 0.2, 0.5), iter = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.