Description Usage Arguments Value Examples
Creates the derivate of the upper Cholesky triangle of the precision matrix
of an AR(1) process with respect to the parameter rho
.
1 | dprecchol_drho(U, dQ)
|
U |
The upper Cholesky triangle of the precision matrix |
dQ |
The derivative of the precision matrix |
A band 1 upper triangular matrix of the same dimensions as U
.
1 2 3 4 5 6 7 | library(Matrix)
t <- c(1, 3:4, 6, 8)
r <- 0.5
s <- 1
U <- ar1_prec_chol_irregular(t, r, s)
dQ <- dprec_drho(t, r, s)
(dU <- dprecchol_drho(U, dQ))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.