Thank you so much for your help! Just have one more quick question. Do I need to indicate that the data is clustered in the two models (mediator and outcome) before the mediation or does it not matter? I tried to enter cluster into the meditation model and received a message stating that the...
I am currently conducting mediation analyses using the mediation package in R. I usually use SAS but this approach seemed more straightforward. I am using a Poisson model (link= log). The mediation runs fine, the issue is that participants in my study contributed more than one sample (for the...