Closed jmgirard closed 6 months ago
mediation()
is now re-implemented in our dedicated Bayes-package, bayestestR. You could install the GitHub repo from the PR, if you like to test. I'll also try out your example, the new mediation()
functions has a response
-argument now.
I am using the
zero_inflated_beta
family inbrms
to assess mediation on two response variables: the beta component ofy
and the degenerate or zero-inflation component calledzi
. Themediation()
function works great to test the mediation involving the beta componenty
but I can't figure out how to ask it to use the degenerate componentzi
as the response variable. Is this possible, or could that functionality be added?Here is a small toy example:
Update: I was able to figure out how to do it using
brms::posterior_samples()
but I still think it would be good to add aresponse
argument to themediation()
function.