how to deal with categorical moderators in structural equation modelling in R as they cannot be mean centered?

Hi everyone.

I hope this is appropriate to ask here..

I am hoping to perform a moderated mediation analyses in R. I have a continuous predictor, a continuous mediator, and a continuous outcome. My moderator is binary gender (male and female only). All examples of running a moderate mediation are mean-centring the moderator, but in my case, this makes no sense as my moderator is categorical. Does anyone know how I should deal with this in R or is able to link me to a relvant example?

Thank you in advance.

See the vignette in {mediator} and the help(mediate) page there.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.