I am running a random effects mediation analysis using lme4::lmer
and the model converged. However, when using
FEmatrix <- coef(medmodelsummary)
to extract the fixed effects, I got the following error message:
Error in switch(chain, 1 = -10, 2 = 10) :
EXPR must be a length 1 vector
I am not sure what this means and can anyone give me a hint on this?
thank you.