I'm trying to run a multilevel mediation analysis in R. I get the error: Error in mediate(model.M, model.Y, treat = "treat", mediator = mediator, data=data): number of observations do not match between mediator and outcome models
Models M and Y are multilevel lme4 models, and there are uneven sample sizes in these models. Is there anything I can do to run this analysis? Will it really only run if I have the same sample sizes in each model?