Skip to content
Prev 8399 / 29559 Next

BYM Model Problem

Hi Peter,

You will probably need to define 'N' as the number of areas in your
problem. For this, you could use 

N<-nrow(nc at data)

This is the most likely cause for your problem, as I mentioned in my
previous e-mail


Also, please use these two lines to get the neighbour list in WB format:

nc.neig<-poly2nb(nc)
nc.nb <- nb2WB(nc.neig)


I believe that your code will work with these changes.

Best,

Virgilio

El lun, 31-05-2010 a las 16:19 -0400, Peter Larson escribi?: