Description Usage Arguments Value Author(s)
Compute kernel matrix for each kernel term in the formula.
1 | parse_kernel_terms(kern_effect_formula, kern_func, data, data_new = NULL)
|
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. |
kern_term_list |
(list) A list of kernel matrices for each term in the formula. |
Jeremiah Zhe Liu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.