Skip to content
Prev 273855 / 398506 Next

glmmadmb help

[cc'ed back to r-help]

  I've started to take a look, and there's nothing immediately obvious
about the problem with the fit (the warnings and errors are about a
"non-positive-definite Hessian", which usually means an
overfitted/poorly identified model) -- still working on whether there's
a way to get more useful information.

  As it turns out, glmmADMB's default behavior in this case is to just
stop with an error.  I could re-write things to allow it to tell you
something (but it wouldn't be able to compute standard errors on the
parameters).
  It's conceivable that you might get slightly different results
(different enough that it would work in one case and fail in another) on
different operating systems, different machines, etc. ... because the
failure is really a case of something that's numerically on the edge,
where negative values in a vector are illegal but the minimum might be
-1e-7 in one case and 1e-7 in another -- i.e., different but just by
numeric "fuzz".
   My first response to this sort of problem would be to see if you can
simplify the model slightly -- e.g. are both random effects really
necessary, etc..

  Several things do suggest themselves from looking at the data:

  * your response variable ranges from 0 to 1, which doesn't make much
sense for a negative binomial response distribution. What does your
response variable represent?  If it is overdispersed *binomial* data,
then (1) you need to use something like a beta-binomial distribution
instead (unfortunately not yet implemented in glmmADMB, but if you were
desperate I might give it a whack) (2) you need to specify the
denominators -- just the proportions won't do it.  If you have just
proportions, then you might be looking for a beta distributed response
(although that has its own trickiness in dealing with response values of
exactly 0 or 1).
  * your "Site" variable has only two levels.  That makes dealing with
it as a random variable extremely questionable (from a *philosophical*
or experimental-design point of view it may be sensible to treat it as a
random variable, but not practical: see http://glmm.wikidot.com/faq for
discussion of this point).  When I made it a fixed effect instead, I got
(apparently) sensible results.
  * The plot of the data (see attached, I hope the attachment gets
through) makes it clear that you have some potential balance problems.
In section/segment combinations (C-D) x (3-5) you have only a few (often
only one) observation in the (beetle.ev=1) case. Mild lack of balance is
no problem in mixed models, but such severe lack of balance can be.
(Note this doesn't guarantee a problem, but it is one of the factors
that makes estimation less stable.)
On 11-10-16 05:41 PM, James McCarthy wrote:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stain_Example.R
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111009/b9978480/attachment.pl>