kernel.function: Kernel Functions

Description Usage Arguments Details Value Author(s) References

Description

These functions transform a n x p matrix into a n x n kernel matrix.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
kernel.gaussian(x, rho = ncol(x))

kernel.linear(x)

kernel.polynomial(x, rho = 1, gamma = 0, d = 1)

kernel.sigmoid(x, rho = 1, gamma = 1)

kernel.inverse.quadratic(x, gamma = 1)

kernel.equality(x)

Arguments

x

a n x p matrix

gamma, rho, d

kernel hyperparameters (see details)

Details

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 n x n matrix.

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.