|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: st: Re: Re: Re: dates in stata
<>
Lisa,
as Michael and Gary have said, use the lowercase version of Paul`s initial
solution as
*************
gen dateval=date(event_date, "dmy")
*************
When I set the interpreter to -version 9.1- in Stata 10.1, this solution
works while the uppercase solution generates all missings (but not an error
message)...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Michael Hanson
Gesendet: Mittwoch, 1. April 2009 02:16
An: [email protected]
Betreff: Re: st: Re: Re: Re: dates in stata
On Mar 31, 2009, at 6:53 PM, Martin Weiss wrote:
> Are there significant differences with regard to date handling btw
> Stata 9 and 10?
The mask in the -date()- function has changed from lower case [c
(stata_version) <= 9] to upper case [c(stata_version) == 10]. Prior
discussions can be found, for example, at:
<http://www.stata.com/statalist/archive/2007-10/msg01089.html> (in
the example code)
<http://www.stata.com/statalist/archive/2008-06/msg00429.html>
<http://www.stata.com/statalist/archive/2008-06/msg00437.html>
<http://www.stata.com/statalist/archive/2009-03/msg01072.html> (in
the postscript)
Hope this helps,
Mike
*
* 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/
*
* 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/