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

st: Update to -todate- on SSC


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Update to -todate- on SSC
Date   Thu, 8 Sep 2005 14:44:28 +0100

Thanks to Kit Baum, the program -todate- on SSC 
has been updated. It now requires Stata 8. 

-todate- is a tool for conversion of run-together
dates (e.g. those of the form 19601125) to date
variables recognisable to Stata. StataCorp's 
advice is to do-it-yourself with run-together dates 
using functions to extract (e.g.) year, month and day 
information and then recombine the parts as appropriate. 
-todate- is a wrapper for such surgical, or rather 
mechanical, operations. 

The changes in this version are principally that 

1. Default formats are assigned whenever the
user does not specify the -format()- option.

2. Any variable labels are copied from the
original variables.

3. The help file makes it clearer what happens
when dates are not daily dates.

4. The help has been SMCLed.

As said, -todate- now requires Stata 8. Tthe 
previous version, which required Stata 7, remains 
available as -todate7- but is otherwise frozen 
as was (that is, none of the enhancements above 
have been made). My policy as program author is 
not to take away previously available functioning 
versions, but to develop only the latest version 
publicly available. 

A question from David Kantor led directly to 
some of these changes. 

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

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