[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Kevin Amess" <Kevin.Amess@nottingham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: xtabond2 memory problems? |

Date |
Thu, 13 Oct 2005 10:28:41 +0100 |

Following Jean's response, particulalrly his suggestion that inconsistent estimates will be obtained due the nature of the panel i.e. T being nearly as large as N, then you might consider the approach suggested by Pesaran and Smith (1995), Journal of econometrics, 68, pp. 79; which would involve running a regression for each state and taking an average of the coefficient estimates for the regressors. More details and an example are in the paper. Kevin >>> JSalvati@imf.org 10/12/05 7:15 pm >>> Kevin, Xtabond2 creates a number of temporary variables (the instruments). You should try increasing maxvar instead of matsize. The number of temporary variables created by xtabond2 increases with the number of instrumental variables, and with the number of observations available for these variables (the number of periods in your panel). Since you only have two regressors and one instrumental variable, I presume that the number of periods in your panel is relatively high (not much lower than the number of states in your panel). This can make the estimator implemented in xtabond2 inconsistent. Also, if pi is exogenous, you may want to add iv(pi) to your command. Jean Salvati > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of > Kevin Christensen > Sent: Wednesday, October 12, 2005 11:32 AM > To: statalist@hsphsun2.harvard.edu > Subject: st: xtabond2 memory problems? > > I'm using xtabond2 to run some regressions. My panel dataset > contains 1674 observations with data for each state by year > and quarter. Not all states have observations for each quarter. > > When I attempt to run the regression: > > xtabond2 Investment l.Investment pi, gmm(l.Investment) > > I get an error stating: > > ".no room to add more variables due to width > An attempt was made to add a variable that would have > increased the memory required to > store an observation beyond what is currently possible. > You have the following > alternatives: > > 1. Store existing variables more efficiently; see help > compress. > > 2. Drop some variables or observations; see help drop. > (Think of Stata's data area as > the area of a rectangle; Stata can trade off width > and length.) > > 3. Increase the amount of memory allocated to the data > area using the set memory > command; see help memory. > r(902);" > > I've increased the matsize (to 800) and memory and I continue > to get an error saying there is not enough space to run the > regression. Does anyone know if xtabond2 has a limit on the > size of the dataset? If so, what is it and is there a work around? > > Thanks, > > Kevin Christensen > > P.S. I'm running SE 9 on Win XP pro. > > * > * For searches and help try: > * http://www.stata.com/support/faqs/res/findit.html > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

- Prev by Date:
**st: windows xp, large dataset and memory problem** - Next by Date:
**st: RE: Free SPSS to STATA dataset conversion utility** - Previous by thread:
**st: RE: xtabond2 memory problems?** - Next by thread:
**Re: st: Thanks - Stata's pseudo R-squared for oprobit** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |