Bayesian spatial model, sampling error

40 Views Asked by At

I have a problem with my code, multivariate poison with spatial correlation, which is written with Openbugs.

The code can not update samples. Do you have any idea about the problem?

Following you can see the first part of the code. you can find the complete code here. (click)

model {

# likelihood for (i in 1:407) { HO[i] ~ dpois(lambdaHO[i]) lambdaHO[i] <- exp(rhoHO[i] + betaHO*ln[i]) }

betaHO ~ dnorm (0,0.001)

# CAR prior distribution for spatial: rhoHO[1:407] ~ car.normal(adj[], weights[], num[], tauSp)

for(k in 1:802) { weights[k] <- 1 }

# other priors

tauSp <- pow(sdSp, -2) sdSp ~ dunif(0, 5) }

inits 1

list(betaHO=0,tau=1, sdSp=2 )