radial_kernel_mat: Gaussian Kernel Matrix

View source: R/kernel_func.r

radial_kernel_matR Documentation

Gaussian Kernel Matrix

Description

calculates the gaussian kernel value of the covariates with each other. calculated matrix will be symmetric

Usage

radial_kernel_mat(covariates, gamma_squared)

Arguments

covariates

dataset of covariates of the subjects in a dataset

gamma_squared

width of the kernel

Value

gaussian kernel matrix

Examples

{
# Example with the preloaded mtcars dataset
covariates <- subset( mtcars, select = c('drat', 'wt') )
SVHM:::radial_kernel_mat(covariates,.5)
}


herglola/SVHM documentation built on March 24, 2022, 12:44 p.m.