Displaying 1 result from an estimated 1 matches for "poissonglmm".
Did you mean:
poisson_glm
2011 Jul 11
1
R2WinBUGS problem: bugs - storage.mode error
I have successfully used R2WinBUGS in the past and an trying to use basically
the same code with some different data but I'm getting the following error:
> out <- bugs(data=win.data, inits=inits, parameters.to.save=params,
> model.file = "PoissonGLMM.txt", n.chains=nc, n.iter=ni, n.burn=nb,
> n.thin=nt, debug=TRUE, DIC=TRUE, working.directory=getwd())
*Error in storage.mode(x) <- "double" :
invalid to change the storage mode of a factor*
Here is the data structure
> str(win.data)
List of 12
$ cday : num [1:349...