Calculate average estimates by taking the (group-wise) mean of all the unit-level
estimates computed by the predictions()
, comparisons()
, or slopes()
functions.
Warning: It is generally faster and safer to use the by
argument of one of
the three functions listed above. Alternatively, one can call it in one step:
avg_slopes(model)
slopes(model, by = TRUE)
Proceeding in two steps by assigning the unit-level estimates is typically
slower, because all estimates must be computed twice.
Note that the tidy()
and summary()
methods are slower wrappers around avg_*()
functions.