Skip to content
Prev 20172 / 20628 Next

Improving residual distribution in glmmTMB

By default (the re.form argument to predict() is set to NULL), the 
predictions include the random effects.  So a 'newdata' data frame like:

ELs   Document  District
20    1         NA
20    2         NA
20    3         NA

would give you the predicted values for document 1, 2, 3, given ELs = 
20, and making a population-level prediction for District (i.e. *not* 
using the District RE/setting this info to 0)
On 2023-05-15 8:46 p.m., Timothy MacKenzie wrote: