Description Usage Arguments Value Examples
View source: R/simulate_blocs.R
The function 'simulate_blocs()' allows you to generate data grouped into different blocks. Outliers can be added to the data.
1 | simulate_blocs(n, M = 2, ratio_card_max = 2, epsilon = 0, trunc_eps = TRUE)
|
n |
number of observations |
M |
number of blocks |
ratio_card_max |
maximal value of the ratio between the cardinality of the different groups |
epsilon |
proportion of outliers |
trunc_eps |
TODO |
a data-frame with three cols
* x, y: the realizations of the * clusters:
1 | df <- simulate_blocs(500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.