jgasper noaa.gov> writes:
>
>
> I have been using the nb2WB() package for the car.normal function in WinBUGS,
> but it will not create the C[] matrix; it only creates adj[], num[], and
> weights[]. I was planning on using this function to create the C[] matrix
> (by using the num matix) require
I have been using the nb2WB() package for the car.normal function in WinBUGS,
but it will not create the C[] matrix; it only creates adj[], num[], and
weights[]. I was planning on using this function to create the C[] matrix
(by using the num matix) required for the car.proper, but I got slipped u
Jason Gasper noaa.gov> writes:
>
> Here is the WinBUGS code
>
>
> Uwe Ligges wrote:
> > If you want that people help to translate *code*, you have to specify
> > it ...
> >
> > Uwe Ligges
Please look at the nb2WB() function in the spdep package, I think that you'll
find that it provides wh
Here is the WinBUGS code
model {
for(i in 1:N) {m[i] <- 1/n[ind[i]] }
cumsum[1] <- 0
for(i in 2:(N+1)) {cumsum[i] <- sum(num[1:(i-1)]) }
for(k in 1:sumNumNeigh) {
for(i in 1:N) {
# #pick[k,i] = 1 if cumsum[i] < k <= cumsum[i=1]; otherwise, pick[k,i] = 0
##step(e) 1 if e >= 0; 0 otherwise
pick
4 matches
Mail list logo