generate_data: Generating Original Data

Description Usage Arguments Details Value Author(s) Examples

Description

Generate original data based on specific kernels.

Usage

1
2
generate_data(n, label_names, method = "rbf", int_effect = 0, l = 1,
  p = 2, eps = 0.01)

Arguments

n

(integer) A numeric number specifying the number of observations.

label_names

(list) A character string indicating all the interior variables included in each predictor.

method

(character) A character string indicating which kernel is to be computed.

int_effect

(numeric) A numeric number specifying the size of interaction.

l

(numeric) A numeric number indicating the hyperparameter (flexibility) of a specific kernel.

p

(integer) For polynomial, p is the power; for matern, v = p + 1 / 2; for rational, alpha = p.

eps

(numeric) A numeric number indicating the size of noise.

Details

This function generates with a specific kernel. The argument int_effect represents the strength of interaction relative to the main effect since all sampled functions have been standardized to have unit norm.

Value

data

(dataframe, n*P) A dataframe to be fitted.

Author(s)

Wenying Deng

Examples

1
2
3
data <- generate_data(n = 100, label_names =
list(X1 = c("x1", "x2"), X2 = c("x3", "x4")),
method = "rbf", int_effect = 0, l = 1, p = 2, eps = .01)

IrisTeng/CVEK documentation built on May 31, 2019, 4:50 p.m.