Closed haututu closed 6 years ago
Do you have a reproducible example?
Attached is some synthetic data and reproducible code using brms version 2.5 Im wondering if it is something to do with using boolean variables.
library(tidyverse)
library(brms)
library(sjstats)
dat <- read.csv("syntheticData.txt")
fit.brms <- brm(bf(mediator ~ treatment) +
bf(outcome ~ mediator + treatment),
family = bernoulli(),
data = dat)
mediator(fit.brms)
I am trying to use mediation() on the following model;
If I do not include
TRUE
in the above arguments I would get the following error;If I add
TRUE
then I get;I used the CRAN version and also the dev version incase there was a difference there, same response.