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

st: RE: RE: error using xtserial


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: error using xtserial
Date   Thu, 24 Feb 2005 21:55:12 -0000

You have put your finger on the problem then. 
You need to -tsset- in terms of quadrennia, 
not years. 

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

joserra coco
 
> Thanks for your message Nick. I did not use any "if" 
> condition, and the 
> variables I use don't have any missing values. There are two 
> issues with my 
> dataset, however: one is that it is an unbalanced panel. And 
> also, the 
> observations that I use are 4-year-periods averages, so the 
> variable that 
> defines the years in the tsset statement is not made of 
> consecutive values.
 
> This could also arise if an -if- condition
> excludes all the data, and/or there are
> problems with missing values.
 

> >I was wondering if somebody out there could help me. I am 
> trying to test 
> >for
> >autocorrelation in panel data using xtserial, and when I run 
> the command I
> >get an error that says "no observations". I read that this 
> error arises 
> >when
> >some of the variables that I use are string type instead of 
> numerical. But
> >all the variables that I use in the test -not in the file- 
> are numerical
> >(float type). Could the error come from any other problem?.

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