list_kern_to_cov: Compute a covariance matrix for multiple individuals

View source: R/kernel-to-matrices.R

list_kern_to_covR Documentation

Compute a covariance matrix for multiple individuals

Description

Compute the covariance matrices associated with all individuals in the database, taking into account their specific inputs and hyper-parameters.

Usage

list_kern_to_cov(data, kern, hp, deriv = NULL)

Arguments

data

A tibble or data frame of input data. Required column: 'ID'. Suggested column: 'Input' (for indicating the reference input).

kern

A kernel function.

hp

A tibble or data frame, containing the hyper-parameters associated with each individual.

deriv

A character, indicating according to which hyper-parameter the derivative should be computed. If NULL (default), the function simply returns the list of covariance matrices.

Value

A named list containing all of the inverse covariance matrices.

Examples

TRUE

MagmaClustR documentation built on June 29, 2024, 1:06 a.m.