Statalist


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

Re: st: xtserial help


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xtserial help
Date   Sat, 19 Jul 2008 21:50:39 -0400

Kenneth F <kgreene@austin.utexas.edu> :
Make a new "time" variable that has no gaps:
bysort panelid (timeid): g faketime=_n
tsset panelid faketime

On Sat, Jul 19, 2008 at 9:18 PM, Greene, Kenneth F
<kgreene@austin.utexas.edu> wrote:
> When I run xtserial I get the error "no observations."  I have an unbalanced panel with no missing values and my model uses the full dataset (i.e., no "if" statement that excludes cases).  The data are country-election-year and thus the time observations are unequally spaced across the panels and in some cases even within panels.  My intuition is that the problem may lie with tsset.  I used "tsset year, generic" because I'm not sure how to specify the type of data I have.  Any suggestions would be much appreciated.
>
> -Ken
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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