Skip to content
Prev 16986 / 20628 Next

distribution of random effects glmmTMB - covariance structure

Logically, the ranef() gives you the empirical Bayes estimates of the 
random effects. Note that the distribution (and as a result the variance 
and covariances) of these is not the same as the distribution you 
specified in the formula of the model. Namely, the distribution you 
define is the _prior_ distribution of the random effects, whereas the 
empirical Bayes estimates are coming from the posterior of the random 
effects.

In math terms, the choice of us() of diag() specifies the distribution 
[b] of the random effects, whereas from ranef() you get the modes or 
means of the posterior distribution

[b | y] which is proportional to [y | b] * [b],

where y denotes you Count outcome, and [y | b] denotes the distribution 
of your outcome.

Best,
Dimitris
On 9/6/2018 7:59 PM, Vidal, Tiffany (FWE ) wrote: