If it's possible, I'd like to request that support in the ivmediate() function be extended to lmer and glmer objects as it is in the mediate() function.
Currently, when you use lmer models as input in ivmediate() you receive the following error message:
Error in tcrossprod(model.matrix(terms(model.t), mf.T.1), t(coef.t)) :
requires numeric/complex matrix/vector arguments
I believe this particular error is due to how ivmediate() extracts model matrices.
If it's possible, I'd like to request that support in the ivmediate() function be extended to lmer and glmer objects as it is in the mediate() function.
Currently, when you use lmer models as input in ivmediate() you receive the following error message:
I believe this particular error is due to how ivmediate() extracts model matrices.