Skip to content
Prev 11825 / 20628 Next

glmerMod with covariance matrix set to 0?

On 14-04-27 12:38 PM, Elizabeth Crone wrote:
This is possible, but it's not *very* easy at present. The basic idea
is to build the full deviance function, and then wrap it in a function
that sets the diagonal elements of the v-cov matrix to the parameters
specified (and the fixed effects vector, if it's a GLMM with nAGQ>0) but
sets the off-diagonal elements of the variance-covariance matrix to
zero.  I haven't had time to put together such an example, but a similar
trick is done at http://rpubs.com/bbolker/6298 ; the diagLmer() function
defined there might work with suitable modifications.

  A slightly better way would actually be to redefine the internal
Lind/Lambda structures; the best way would be for us to implement a
notation that would allow end-users to do this easily ...

  Ben Bolker