dnormtz {SuperGauss} | R Documentation |
Density of a multivariate normal with Toeplitz variance matrix.
Description
Density of a multivariate normal with Toeplitz variance matrix.
Usage
dnormtz(X, mu, acf, log = FALSE, method = c("gschur", "ltz"))
Arguments
X |
Vector of length |
mu |
Vector or matrix of mean values of compatible dimensions with |
acf |
Vector of length |
log |
Logical; whether to return the multivariate normal density on the log scale. |
method |
Which calculation method to use. Choices are: |
Value
Vector of n
(log-)densities, one for each column of X
.
Examples
# simulate data
N <- 10 # length of each time series
n <- 3 # number of time series
theta <- 0.1
lambda <- 2
mu <- theta^2 * rep(1, N)
acf <- exp(-lambda * (1:N - 1))
X <- rnormtz(n, acf = acf) + mu
# evaluate log-density
dnormtz(X, mu, acf, log = TRUE)
[Package SuperGauss version 2.0.3 Index]