I analyse panel data. I need to regress Y by X Z W, where X Z W are endogeneous. The instruments which I use are internal and constructed in the following manner X1=L1.X1, Z1=L1.Z1, W1=L1.W1.
I would like to use ivreg2 function in Stata.
How to formulate the command?