I want to jointly estimate a very simple MV-Normal two-dimensional AR[1] process, $[x_t,y_t]=[x_{t-1},y_{t-1}]+\text{[Bivariate Gaussian error]}$, in BUGS. But the syntax has been impossible to figure out. Here's the problem part of the code:
## transition model (aka random walk prior)
for(i in 2:NPERIODS1){
mu.vector[i,1:2]<-vector[i-1,1:2]
vector[i,1:2]~dmnorm(mu.vector[i,1:2], omega[1:2,1:2])
}
The compiler throws up a "Expected a multivariate node" error. Looking through some examples, there doesn't seem to be any easy way to introduce a structured mean or covariance variables for the multivariate normal function. How should I proceed?
Edit: Changed omega[,] to omega[1:2,1:2] for clarity.