Skip to content
Prev 19446 / 20628 Next

Question about flexible LME4 Variance-Covariance Structure

I agree that the 'hack' is suboptimal.  It can be done if you set up 
a bunch of dummy variables **and** use the lowest-variance group as the 
reference, e.g.

   NUM_VALUE ~ TREATMENT + (1|block) + (0+block2dummy|obs) + (0 + 
block3dummy|obs) + ...

   This is ugly (but can be automated); I think it *is* the correct 
model, but reconstructing the residual variances for each block is a 
nuisance.

   glmmTMB can also  do dispersion models, via

glmmTMB(NUM_VALUE ~ TREATMENT + (1|block), dispformula  = ~ block, ...)


   cheers
    Ben Bolker
On 8/16/21 5:12 PM, Peter Claussen via R-sig-mixed-models wrote: