The process macro considers the metric variable as a mediator for performing mediation analysis. The Mplus software provides a facility to perform mediation analysis using a non-metric variable. My question is, do software like R and PLS can do the mediation analysis with the help of non-metric variable taken as mediator variable?