Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: tsset for panel time series


From   Dani Tilley <tilleydani@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: tsset for panel time series
Date   Thu, 1 Jul 2010 10:55:10 -0700 (PDT)

Hi,

I'm trying to declare a panel time series and I'd appreciate some help. I have data on several variables over time, as well as Year and Month variables. I used -tostring- to convert Year and Month to string, and I concatenated them into a third string variable (format YearMo). I then tried to convert this third variable into date format using monthly(thirdvar,"ym") and used it in tsset thirdvar and got an error message "repeated time values in sample". I know I'm doing something wrong, but I can't figure out what or how to fix it.'

Any help would be appreciated.

Thanks,

Dani Tilley


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