Description Usage Arguments Details Value Author(s) Examples
Generate original data based on specific kernels.
1 2 | generate_data(n, fixed_num = 1, label_names = NULL, method = "rbf",
l = 1, d = 2, int_effect = 0, eps = 0.01)
|
n |
(integer) A numeric number specifying the number of observations. |
fixed_num |
(integer) A numeric number specifying the dimension of fixed effects. |
label_names |
(list) A character string indicating all the interior variables included in each group of random effects. |
method |
(character) A character string indicating which kernel is to be computed. |
l |
(numeric) A numeric number indicating the hyperparameter (flexibility) of a specific kernel. |
d |
(integer) For polynomial, d is the power; for matern, v = d + 1 / 2; for rational, alpha = d. |
int_effect |
(numeric) A numeric number specifying the size of interaction. |
eps |
(numeric) A numeric number indicating the size of noise of fixed effects. |
This function generates with a specific dataset. The argument int_effect represents the strength of interaction of random effects relative to the main random effects since all sampled functions have been standardized to have unit norm.
data |
(dataframe, n*(p+q)) A dataframe to be fitted. |
Wenying Deng
1 2 3 | mydata <- generate_data(n = 100, fixed_num = 1, label_names =
list(Z1 = c("z1", "z2"), Z2 = c("z3", "z4")),
method = "rbf", l = 1, d = 2, int_effect = 0, eps = .01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.