I would like to test if one variable (M) exerts a mediator role in the relationship between another variable (A) and the dependent variable (Y). Does anyone know if there is a particular way to test this? Do you know any good reference to give to my students? I have seen some tests in the internet, but the references do not look professional enough to share them with my students.