Murphy Topel Correction

Dear all,
I am estimating an econometric model where there are generated regressors. In detail, the second model is a linear model that uses three generated regressors one of which is generated by a Probit and two are generated by a linear one.
Do someone knows how to modify the Stata code in order to take into account the fact that there is more than one generated regressor?