On slide 89 of my 2019 London Stata Conference presentation, you can find an example about the use of xtdpdgmm (which is an alternative for xtabond2) to replicate the fixed-effects estimator for a static model with a GMM command. You can use this as a starting point and then modify the instruments etc. as desired.
•Kripfganz, S. (2019). Generalized method of moments estimation of linear dynamic panel data models. Proceedings of the 2019 London Stata Conference.
Answer from
https://www.statalist.org/forums ... model-with-xtabond2