parse_kernel_terms: Computes kernel matrix for each kernel term in the formula

Description Usage Arguments Value Author(s)

Description

Computes kernel matrix for each kernel term in the formula

Usage

1
parse_kernel_terms(kern_effect_formula, kern_func, data, data_new = NULL)

Arguments

kern_effect_formula

(character) a term in the formula

kern_func

(function) A kernel function. Will be overwritten to linear kernel if the variable doesn't contain 'k()'

data

(data.frame, n*d) a data.frame, list or environment (or object coercible by as.data.frame to a data.frame), containing the variables in formula. Neither a matrix nor an array will be accepted.

data_new

(data.frame, n_new*d) new data for computing predictions.

Value

A list of kernel matrices for each term in the formula

Author(s)

Jeremiah Zhe Liu


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