make_dyn_cov | R Documentation |
Cholesky decomposition is the recommended way of parametrising the positive definite matrices used for dynamical covariance structure. This function provides a handy wrapper for doing this.
make_dyn_cov(timefunction, knots, K)
timefunction |
Time function for dynamical covariance |
knots |
knots for dynamical covariance |
K |
Dimension |
.
A function
kovMat
g <- make_dyn_cov(Materntid, c(0, 0.5, 1), 3) # assume we have some parameters in a vector pars, e.g. pars = c(rep(c(1,0,0, 1,0,1), 3), 0.1, 1.5) (diagonal covariance) g(ti, param = pars[1:18], range = pars[19], smooth = pars[20], noise = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.