generate_RLdata: Generate Roy, Larocque data

Description Usage Arguments Value

Description

Function to generate data from simulations used in Roy & Larocque (2012)

Usage

1
generate_RLdata(ntrain, ntest, p, m, type = "Var", DGP = 1)

Arguments

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.

Value

returns a list containing the training dataset, the test dataset, and an indicator of whether training cases came from contaminating distribution.


AndrewjSage/RFLOWESS documentation built on May 26, 2019, 6:38 a.m.