synth_reg_data: Synthesize Simple Regression Data

View source: R/synth_reg_data.R

synth_reg_dataR Documentation

Synthesize Simple Regression Data

Description

Synthesize Simple Regression Data

Usage

synth_reg_data(
  nrow = 500,
  ncol = 50,
  noise.sd.factor = 1,
  resample.params = setup.resample(),
  seed = NULL,
  verbose = FALSE
)

Arguments

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 dat.train and dat.test output; all resample output under resamples

seed

Integer: Seed for random number generator. Default = NULL

verbose

Logical: If TRUE, print messages to console. Default = FALSE

Value

List with elements ⁠dat, dat.train, dat.test, resamples, w, seed⁠

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Oct. 28, 2024, 6:30 a.m.