Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Need help: Problems with tsset


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Need help: Problems with tsset
Date   Wed, 24 Aug 2005 14:56:57 +0100

Your best bet is probably to -tsset- in
terms of a time variable that is years/5, so 
that -tsset- no longer perceives gaps. 

Nick 
n.j.cox@durham.ac.uk 

risti permani
 
> This might be a simple problem for those who are familiar 
> with STATA, but it 
> really makes me confused.
> 
> so, I have panel data
> the period is in 5 year interval - across countries.
> and I need to tsset the data before using xtabond and xtivreg fd
> the format of my data are something like this:
> 
> isocode      yr      income
> 1           1965      1230
> 1           1970      1450
> :
> :
> 1           2000      3670
> 2           1965      2345
> 2           1970      3400
> :
> :
> 
> so how to tsset the data
> I've tried to do this:
> 
> tsset isocode yr
> 
> then it appears on the result box:
> 
>        panel variable:  isocode, 1 to 18
>         time variable:  yr, 1965 to 2000, but with gaps
> 
> then, I put command for xtivreg
> but then the result is "no observation"
> 
> so my QUESTION: what command should I put to state 5 year 
> interval and make 
> it work?

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