Skip to content

help with winbugs glm

2 messages · Adan Jordan-Garza, ilai

#
Adan,
How many levels does Depth have? my wild guess: 3 and your bugs model
is not identifiable.

Second, I think you may have a critical error in the way you formatted
the data for the bugs model. From your code it looks like you are just
using the factor Depth and not a design matrix of dummy variables.

I may be wrong with respect to WinBugs (I use JAGS), but if Depth is
denoted as, for e.g., "low","med","high" wouldn't your multiply
operation "...*Depth[i] " on line 5 fail ?

More likely Depth is denoted "1","2","3" and WinBugs thinks it's
numerical. Well, in that case clearly coefficients for this model
don't make any sense (you'll only need one b for the slope). You can
use model.matrix(~Depth) to get the proper format for your data.

Hope this solves it. Next time, knowing n.chains n.iter and if they
achieved convergence (with different starting values) can help sort
through these sort of issues.

Cheers

Elai

On Thu, Feb 23, 2012 at 9:57 AM, Adan Jordan-Garza
<ajordangarza2009 at my.fit.edu> wrote: