AR2_Q | R Documentation |
Autoregressive order 2 - AR(2) precision matrix generator
AR2_Q(n = 10, sd = 1, rho = c(0.9, 0.05))
n |
length |
sd |
standard deviation |
rho |
two AR2 coefficients |
QQ <- AR2_Q(10)
x <- INLA::inla.qsample(1, Q,
constr = list(A = matrix(1, ncol = nrow(Q)), e = 0))
plot(x, type = 'l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.