Statalist The Stata Listserver


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

RE: RE: st: RE: tsset


From   "Charles Thibault" <cthibault@corzen.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: RE: st: RE: tsset
Date   Thu, 12 Oct 2006 17:37:26 -0400


The reason mainly revolves around tsfill. When doing -

egen groupvar, group()

tsset groupvar timevar

tsfill, full

 - the information that identifies the panels, for example counties and
households jointly, is lost.

The information needs to be replaced manually according to the method you
described, namely:

replace county = county[_n-1] if mi(county)
replace household = household[_n-1] if mi(household)


Allowing multiple variables to identify the panel would avoid this step and
the first egen command, which not only saves time but also avoids potential
danger for a novice if the user first sorts on county and household and THEN
replaces the missing data.



Charles Thibault




*
*   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/



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