Description Usage Arguments Value
Function to generate data from simulations used in Li & Martin (2017)
1 | generate_LMdata(ntrain, ntest, p, Vartype = "Id")
|
ntrain |
number of training cases to generate |
ntest |
number of test cases to generate |
p |
probability of coming from contaminating distribution |
Vartype |
covariance matrix can be either identity matrix ("Id") or Toeplitz(0.7) matrix ("Toeplitz) |
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.