I am trying to reprogram the data generating process from Haug (1996) which follows this equation:
Parameter a1 can take values (0,1); a2 is fixed at value 1 and their purpose is to set exogeneity or endegeneity. How can I implement the second equation into my program code?
Source: Haug, A. A. (1996): Tests for cointegration a Monte Carlo comparison. Journal of econometrics, 71(1-2), 89-115.