endogenous(varlist [, lagstruct(endlags, endmaxlags)]) specifies that a set of endogenous variables be included in the model. Optionally, one may specify
that endlags lags of the specified variables also be included. The default for endlags is 0. Specifying endmaxlags sets the maximum number of further
lags of the endogenous variables that can be used as instruments. The default is to include T_i-p-2 lagged levels as instruments for endogenous
variables. You may specify as many sets of endogenous variables as you need within the standard Stata limits on matrix size. Each set of endogenous
variables may have its own number of endlags and endmaxlags.