dprecchol_drho: Derivative of the upper Cholesky triangle of the precision...

Description Usage Arguments Value Examples

Description

Creates the derivate of the upper Cholesky triangle of the precision matrix of an AR(1) process with respect to the parameter rho.

Usage

1

Arguments

U

The upper Cholesky triangle of the precision matrix Q of the AR(1) process.

dQ

The derivative of the precision matrix Q with respect to the correlation parameter rho.

Value

A band 1 upper triangular matrix of the same dimensions as U.

Examples

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(t, r, s)
dQ <- dprec_drho(t, r, s)
(dU <- dprecchol_drho(U, dQ))

BenjaK/irregulAR1 documentation built on May 30, 2019, 3:51 p.m.