How to run marginal_effects against alternate response

Please also provide the following information in addition to your question:

  • Operating System: MacOS 10.14.5
  • brms Version: 2.9.0

In the tutorial “Advanced Bayesian Multilevel Modeling with the R Package brms,” there is a formula

fit_zinb2 <- brm(bf(count ~ persons + child + camper, zi ~ child),
                 data = zinb, family = zero_inflated_poisson())

How would one run marginal_effects on zi ~ child?

I’ve tried other arguments like marginal_effects(fit_zinb2, re_formula = zi ~ child), and marginal_effects(fit_zinb2, resp = "zi") (based on this answer) which made no difference.

Use argument dpar = “zi”