Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: xtabond2 issues

From   "Alan Jenn" <>
To   <>
Subject   st: xtabond2 issues
Date   Fri, 25 Nov 2011 13:20:14 -0500

I am trying to perform a regression using the GMM estimator with the
xtabond2 function.  I have panel data with about 25,000 observations, 430
groups (unbalanced), and 132 time periods.  My model is of the form:
s(i,t) = s(i,t-1) + p(i,t) + x(i,t) + error (without coefficients)
Where s is my dependent variable, p are my variables of interest, and x are
my control variables.  My Stata command to implement xtabond is essentially
as follows (after implementing xtset for i and t):
xtabond2 s l.s p x, gmm(l.s) iv(p x) robust
However, whenever I try running this command I receive the following error:

J():  3900  unable to allocate real <tmp>[8788,8788]
xtabond2_mata():     -  function returned error
<istmt>:     -  function returned error

I have tried allocating more memory using the set memory command and by
turning virtual memory on but Stata doesn't allow me to give much more than
1 gb of memory.  Is my syntax incorrect for xtabond2 or are there other
possible ways to implement the GMM estimator?  Any assistance would be
greatly appreciated!
Thank you very much,
Alan Jenn

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index