Hello, I am trying to check the mediation effect of firm innovation on the relationship between Chief Marketing Officer presence and firm financial performance.

Firm innovation is the mediator variable, CMO presence is the independent variable coded as 0 for CMO presence and 1 for CMO absence. Firm financial performance is the independent variable and the lagged firm performance is the control variable in my dataset.

My data is panel data, I have collected it for 97 firms for the period of 20 years and have created id variables for each firm.

My question is that is there some code which I can use to replicate PROCESS bootstrapping model 4 in Stata? Since Stata is ideal for handling panel data