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]

re:st: RE: Inaccurate date-time variable


From   Christopher Baum <[email protected]>
To   "[email protected]" <[email protected]>
Subject   re:st: RE: Inaccurate date-time variable
Date   Mon, 17 Oct 2011 10:06:18 -0400

<>
Furthermore, this is an Extremely Bad Idea:

gen clock_date2= Clock(clock_date, "YMDhms")

All variables which are to store intraday time information should be declared as double, as their precision relies on large integer values being retained as such.  Making them floats messes that up big time (groan), as the help and manual states.

Kit

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html




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