search for: glmm_poisson

Displaying 1 result from an estimated 1 matches for "glmm_poisson".

Did you mean: glm_poisson
2012 Aug 30
0
storage mode error question (R2winBUGS)
Hi all, I've been trying to run a model using R2winBUGS, and recurrently I get the message: "Error in FUN(X[[3L]], ...) : invalid to change the storage mode of a factor" My model is the following: sink("GLMM_Poisson.txt") cat(" model{ mu~dnorm(0,0.01) beta1~dnorm(-1,1) for(j in 1:nsite){ alpha[j]~dnorm(mu.alpha,tau.alpha) } mu.alpha~dnorm(0,0.01) tau.alpha<-1/(sd.alpha*sd.alpha) sd.alpha~dunif(0,5) #Likelihood for (i in 1:n){ for(j in 1:nsite) C[i,j]~dpois(lambda[i,j]) log(lambda[i,j])<-m...