Code:
net install xtdpdgmm, from(http://www.kripfganz.de/stata/) replace
Under the assumption of a serially uncorrelated idiosyncratic error term \(u_{it}\), the option nl(noserial) incorporates the following nonlinear moment conditions:
\[E[(\alpha_i+u_{iT}) \Delta u_{it}] = 0\]
for t=1,2,...,T-1.
So far, that is nothing new (see slide 58 of my 2019 London Stata Conference presentation). If we suspect first-order serial correlation of \(u_{it}\), we could still obtain valid nonlinear moment conditions by restricting them to the observations t=1,2,...,T-2. If there is second-order serial correlation, change the upper limit to T-3. This can be achieved with a new lag() suboption, e.g. when we suspect first-order serial correlation we could specify
Code:
nl(noserial, lag(2))
Leave a comment: