I'm currently facing a challenge and would greatly appreciate your assistance. I'm attempting to conduct a mediation analysis with two mediators in a within-subject design exoeriment using R. Here's a brief overview of my situation:
Research Problem: I'm investigating the relationship between an independent variable (which can take on values of green, yellow, or red) and a single dependent variable.
Mediation Analysis: My analysis involves two mediators, and I want to understand how these mediators influence the relationship between the independent and dependent variables.
Previous Attempts: Initially, I tried using the PROCESS function in R for mediation analysis. However, I encountered difficulties as the function doesn't account for repeated measures, which is essential in my study design.
Current Approach: Upon further exploration, I discovered the mediation package. While this function seems promising for handling repeated measures, I'm unsure if it can accommodate analyses with two mediators. Similarly, I'm uncertain about the capabilities of the lameer function in this context.
I would be immensely grateful if you could guide how to proceed with this analysis. Any insights or recommendations on suitable R packages or methods for conducting mediation analysis with two mediators, particularly in a study with repeated measures, would be incredibly valuable.
Thank you very much for considering my request. Your expertise and assistance are greatly appreciated.