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]

re: st: tsset error codes

From   Christopher Baum <>
To   "" <>
Subject   re: st: tsset error codes
Date   Thu, 23 Feb 2012 15:52:58 -0500

I said

If I'm not mistaken, CES data are a cross-section for each quarter, so you do not have a time series; you have as many 'repeated time values' as there are individuals in a quarterly dataset. Thus you cannot use tsset with one argument no matter what. But it's not a panel either, in that households rotate out of the survey after 5 quarters. So you have to treat these data with caution.

'With caution' means if each household has a unique identifier (something akin to the social security # of the head of household, which of course it will not be), but households are in the sample for 5 quarters and then rotate out, you could do

tsset hhid qtr
xtset hhid qtr

What you do NOT want to do is compute some measure across time (such as a lag or difference) that will pick up values from different households. So you do NOT want to do something like number the households sequentially in each quarter and use that as hhid. That would not recognize that there are 5 obs. for each household over time, nor would it make clear that hhid=126 at one point in time could be a different unit than hhid=126 in the next period.


Kit Baum   |   Boston College Economics & DIW Berlin   |
                             An Introduction to Stata Programming  |
  An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

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