radial_kernel_mat | R Documentation |
calculates the gaussian kernel value of the covariates with each other. calculated matrix will be symmetric
radial_kernel_mat(covariates, gamma_squared)
covariates |
dataset of covariates of the subjects in a dataset |
gamma_squared |
width of the kernel |
gaussian kernel matrix
{ # Example with the preloaded mtcars dataset covariates <- subset( mtcars, select = c('drat', 'wt') ) SVHM:::radial_kernel_mat(covariates,.5) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.