Learn R Programming

CVEK (version 0.1-2)

define_library: Defining Kernel Library

Description

Generate the expected kernel library based on user-specified dataframe.

Usage

define_library(kern_par = NULL)

Arguments

kern_par

(dataframe, K*3) A dataframe indicating the parameters of base kernels to fit kernel effect. See Details.

Value

kern_func_list

(list of length K) A list of kernel functions given by user. Will be overwritten to linear kernel if kern_par is NULL.

Details

It creates a kernel library according to the parameters given in kern_par.

* kern_par: for a library of K kernels, the dimension of this dataframe is K*3. Each row represents a kernel. The first column is method, with entries of character class. The second and the third are l and p respectively, both with entries of numeric class.

See Also

method: generate_kernel