I have been trying to understand 2 stage least squares regression, and I am having difficulty understanding how that is different from mediation analyses. It would be helpful if you could provide some context, for instance, what sort of questions or hypothesis are these 2 techniques tests and how do they differ?