powered by
Multiplies the Choleski decomposition of the Toeplitz matrix with another matrix, or solves a system of equations with the Cholesky factor.
cholZX(Z, acf)cholXZ(X, acf)
cholXZ(X, acf)
Length-N or N x p matrix of residuals.
N
N x p
Length-N autocorrelation vector of the Toeplitz variance matrix.
Length-N or N x p matrix of observations.
Size N x p residual or observation matrix.
If C == t(chol(toeplitz(acf))), then cholZX computes C %*% Z and cholZX computes solve(C, X). Both functions use the Durbin-Levinson algorithm.
C == t(chol(toeplitz(acf)))
cholZX
C %*% Z
solve(C, X)
# NOT RUN { N <- 10 p <- 2 W <- matrix(rnorm(N * p), N, p) acf <- exp(-(1:N - 1)) cholZX(Z = W, acf = acf) cholXZ(X = W, acf = acf) # }
Run the code above in your browser using DataLab