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, fixed_num = 1, label_names = NULL, method = "rbf",
  l = 1, d = 2, int_effect = 0, eps = 0.01)

Arguments

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.

Details

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.

Value

data

(dataframe, n*(p+q)) A dataframe to be fitted.

Author(s)

Wenying Deng

Examples

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)

statmlhb/CVEK documentation built on May 5, 2019, 3:47 a.m.