Description Usage Arguments Value
Function to generate data from simulations used in Roy & Larocque (2012)
1 | generate_RLdata(ntrain, ntest, p, m, type = "Var", DGP = 1)
|
ntrain |
number of training cases to generate |
ntest |
number of test cases to generate |
p |
probability of coming from contaminating distribution |
m |
multiplier determining signal-to-noise ratio |
type |
should contamination be done to the variance or the mean |
DGP |
Which data generating process from Roy & Larocque (2012) should be used? Choices are 1 or 2. |
returns a list containing the training dataset, the test dataset, and an indicator of whether training cases came from contaminating distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.