Mediation analysis with categorical independent variables