View source: R/synth_reg_data.R
synth_reg_data | R Documentation |
Synthesize Simple Regression Data
synth_reg_data(
nrow = 500,
ncol = 50,
noise.sd.factor = 1,
resample.params = setup.resample(),
seed = NULL,
verbose = FALSE
)
nrow |
Integer: Number of rows. Default = 500 |
ncol |
Integer: Number of columns. Default = 50 |
noise.sd.factor |
Numeric: Add rnorm(nrow, sd = noise.sd.factor * sd(y)). Default = 2 |
resample.params |
Output of setup.resample defining training/testing split. The first resulting resample
will be used to create |
seed |
Integer: Seed for random number generator. Default = NULL |
verbose |
Logical: If TRUE, print messages to console. Default = FALSE |
List with elements dat, dat.train, dat.test, resamples, w, seed
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.