Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: writing programs in stata


From   "Stas Kolenikov" <[email protected]>
To   [email protected]
Subject   Re: st: writing programs in stata
Date   Fri, 24 Feb 2006 22:12:41 -0600

> > > > This may be a silly thing. I need to be able to write
> > > > a few programs to do data manipulation and construct
> > > > dates by grabbing letters from a string of numbers. I
> > > > can do this in excel. Can anyone give me pointers to a
> > > > few stata resources/books that can help me with
> > > > programs in stata.

Stata dates are Unix dates, and start with 1/1/1960 = 0. See -help
tdates- and references therein on conversion from strings to dates --
if you've never worked with those before, they seem really weird, but
when you start thinking about the stuff more deeply, there is no
significantly better way to handle the dates.

--
Stas Kolenikov
http://stas.kolenikov.name

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index