Kernel: Create a Kernel Object

Description Usage Arguments Details Value Author(s) References

View source: R/Kernel.R

Description

Create a kernel object, to use as variable in a model formula.

Usage

1
2

Arguments

x

a formula, a vector or a matrix of variables grouped in the same kernel. It could also be a symetric matrix representing the Gram matrix, associated to a kernel function, already computed by the user.

kernel.function

type of kernel. Possible values are "gaussian", "linear", "polynomial", "sigmoid", "inverse.quadratic" or "equality". See details below. If x is a Gram matrix, associated to a kernel function, already computed by the user, kernel.function should be equal to "gram.matrix".

scale

boolean indicating if variables should be scaled before computing the kernel.

rho, gamma, d

kernel function hyperparameters. See details below.

Details

To use inside kspm() function. Given two p-dimensional vectors x and y,

Of note, Gaussian, inverse quadratic and equality kernels are measures of similarity resulting to a matrix containing 1 along the diagonal.

Value

A Kernel object including all parameters needed in computation of the model

Author(s)

Catherine Schramm, Aurelie Labbe, Celia Greenwood

References

Liu, D., Lin, X., and Ghosh, D. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088.


KSPM documentation built on Aug. 10, 2020, 5:07 p.m.