Title | Time-series operators | |
Author | Allen McDowell, StataCorp |
I’m puzzled by the command xtabond and how to interpret the following line:
xtabond n l(0/1).w l(0/2).(k ys) yr1980-yr1984, lags(2)
The manual is unclear about this. I also don’t understand the output that is displayed. It contains symbols such as LD, L2D, and D1.
Since I suspect that these are time-series operators, I checked the manual for such information but was unable to find anything. Where can I find an explanation of these time-series operators?
To interpret the command, you need only understand that time-series operators accept both numlists and varlists (see [U] 11.4.4 Time-series varlists, [U] 11.4 varlists, and [U] 11.1.8 numlist).
For example, the term
l(0/1).w
means lags 0 through 1 of the variable w. That is, it means the variable w and the variable w lagged 1 period (i.e., w and l.w). The term
l(0/2).(k ys)
means lags 0 through 2 of the variable k and the variable ys, or k, l.k, l2.k, ys, l.ys, and l2.ys.
In general, l.var or l1.var means the first lag of var; l2.var means the second lag of var; and in general, l#.var means the #th lag of var. There are also difference operators (using d.var), leads (f.var), and seasonal differences (s.var).
To summarize, the command above could be expanded to read
xtabond n w l.w k l.k l2.k ys l.ys l2.ys yr1980-yr1984, lags(2)
yr1980-yr1984 is Stata’s common shorthand for a varlist and is equivalent to yr1980 yr1981 yr1982 yr1983 yr1984. Finally, lags(2) means to include the first and second lag of the dependent variable in the model.
Learn
Free webinars
NetCourses
Classroom and web training
Organizational training
Video tutorials
Third-party courses
Web resources
Teaching with Stata
© Copyright 1996–2024 StataCorp LLC. All rights reserved.
×
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.