Hello

I am working on mediation effect using stata SEM. My indepedent variable is binary which answered either yes or no with formative question.
In this situation, how can I measure SEM? is there any difference in measurinf SEM?
Moreover, I would like to know when independent variable is transformed into log, then how can I draw SEM in stata?

Thank you