Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: converting series of dates to numeric variable


From   loggyedr salvez <[email protected]>
To   [email protected]
Subject   st: converting series of dates to numeric variable
Date   Wed, 23 May 2012 11:07:28 +0200

Dear all,

I have observations every 4 weeks (4-week period data).

In  the excel.csv file i format the cells for the date column as follows

           dates11                     identier            variable
  November 1, 2009                  1
November 29, 2009                  1
December 27, 2009                  1
January 31, 2010                     1
 November 1, 2009                   2
  November 29, 2009                  2
   December 27, 2009                2
   January 31, 2010                   2

and then I use the commads:

gen edate1 = date(dates11, "MDY")
format edate1  %d
 tsset identifier edate1



and I get the following stata message:

tsset identif2 edate1
       panel variable:  identif2 (strongly balanced)
        time variable:  edate1, 02nov2008 to 09oct2011, but with gaps
                delta:  1 day


Is this message something alarming? why "gaps"? and why delta "1 day"
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index