Bayesian spatial model, sampling error

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
sinasahebi
Posts: 1
Joined: Thu Jul 13, 2017 7:46 pm

Bayesian spatial model, sampling error

Post by sinasahebi »

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. (https://drive.google.com/file/d/0BzwgJ- ... sp=sharing)

model {

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

betaHO ~ dnorm (0,0.001)

# CAR prior distribution for spatial random effect: 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 )
Post Reply