get_Gamma: Define a kernel (function) over samples

View source: R/fit_model.R

get_GammaR Documentation

Define a kernel (function) over samples

Description

Define a kernel (function) over samples

Usage

get_Gamma(
  kernel_scale,
  diet_weight,
  min_correlation = 0.1,
  days_to_min_autocorrelation = 90
)

Arguments

kernel_scale

total variance for the composite kernel

diet_weight

relative contribution of first three diet PCs to covariance across samples

rho

bandwidth for SE kernel

Details

Composite kernel is built from (1) squared exponential kernel (base autocorrelation component) and (2) seasonal kernel (periodic)

Value

list containing kernel function and bandwidth parameter


kimberlyroche/rulesoflife documentation built on May 7, 2023, 11:08 a.m.