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: Problem with the time
From 
 
Oliver Jones <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: Problem with the time 
Date 
 
Wed, 13 Apr 2011 17:05:31 +0200 
Hi,
maybe the function year just can handle the format %td correctly?
dis year(0)
gives the expected result of 1960 which is Statas base year.
And then
dis year(366)
gives the year 1961.
But I can't help more...
Best
Oliver
Am 13.04.2011 16:45, schrieb Guido Lüchters:
Hi Statalist
anybody knows
why
gen x=year(ym(1951,1))
gives
1959 ?
thanks a lot
Guido
*
*   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/
--
Universität Bielefeld
Fakultät für Wirtschaftswissenschaften
Lehrstuhl für Ökonometrie und Statistik
- - -
Bielefeld University
Faculty of Business Administration and Economics
Chair of Econometrics and Statistics
- - -
Raum / room:  V9-110
Tel / phone:  +49 (0)521 106 4871
--
*
*   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/