Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Problem with the time

From   Oliver Jones <>
Subject   Re: st: Problem with the time
Date   Wed, 13 Apr 2011 17:05:31 +0200

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


Am 13.04.2011 16:45, schrieb Guido Lüchters:
Hi Statalist

anybody knows


gen x=year(ym(1951,1))

1959 ?

thanks a lot
*   For searches and help try:

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:

© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index