Description Usage Arguments Details Value Author(s) Examples
Generate original data based on specific kernels.
1 2 | generate_data(n, label_names, method = "rbf", int_effect = 0, l = 1,
p = 2, eps = 0.01)
|
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. |
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.
data |
(dataframe, n*P) A dataframe to be fitted. |
Wenying Deng
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.