I am writing this message because I want to calculate the average marginal effects (AME) in order to be able to interpret an interaction resulting from a multilevel regression. However, I am finding that the vast majority of packages that are used for this purpose (marginal and marginaleffects) cannot be applied to regressions from the glmmTMB package. Any recommendations?
Thanks
estimate_slopes
function frommodelbased
package. It supportsglmmTMB
. Inmarginaleffects
, you can specifyvcov=FALSE
inavg_slopes
and get the estimate without standard errors, or you can explicitly provide variance-covariance matrix (e.g.,vcov=vcov(mod)
). There is an ongoing (and quite helpful) discussion in this issue on github. $\endgroup$