forked from statmlhb/CVEK
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparse_kernel_terms.Rd
30 lines (27 loc) · 964 Bytes
/
parse_kernel_terms.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interface.R
\name{parse_kernel_terms}
\alias{parse_kernel_terms}
\title{Computes kernel matrix for each kernel term in the formula}
\usage{
parse_kernel_terms(kern_effect_formula, kern_func, data, data_new = NULL)
}
\arguments{
\item{kern_effect_formula}{(character) a term in the formula}
\item{kern_func}{(function) A kernel function. Will be overwritten to linear
kernel if the variable doesn't contain 'k()'}
\item{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.}
\item{data_new}{(data.frame, n_new*d) new data for computing predictions.}
}
\value{
A list of kernel matrices for each term in the formula
}
\description{
Computes kernel matrix for each kernel term in the formula
}
\author{
Jeremiah Zhe Liu
}
\keyword{internal}