Bookmark and Share

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: date in stata


From   Luis Fallas <[email protected]>
To   [email protected]
Subject   Re: st: date in stata
Date   Mon, 8 Aug 2011 07:22:30 -0600

Thanks

the problem is resolved now...

regards

Luis Fallas




2011/8/8 Nick Cox <[email protected]>
>
> Any one using calendars other than the present Western calendar would
> I think be best advised to hold their dates as strings using the
> calendar in force at the time and numeric equivalents holding day
> before some base date.
>
> http://www.cambridge.org/gb/knowledge/isbn/item1164334/
>
> is a good source.
>
> Nick
>
> On Mon, Aug 8, 2011 at 2:33 AM, Austin Nichols <[email protected]> wrote:
> > Kit--
> > You have convert all dates to the Gregorian calendar, however...
> > remembering that nothing happened in the British
> > colonies between 2 Sep and 14 Sep 1752 because those days did not exist,
> > but there was a 30 Feb 1712 in Sweden.
> > Presumably, anyone with data for early dates is aware of this, but it
> > is worth remembering that
> > there were non-negligible changes in 1582 and many subsequent years,
> > differing by location:
> > http://en.wikipedia.org/wiki/Gregorian_calendar#Adoption_in_Europe
> >
> > On Sun, Aug 7, 2011 at 10:36 AM, Christopher Baum <[email protected]> wrote:
> >> On Aug 7, 2011, at 2:33 AM, Luist wrote:
> >>
> >>> id sex date of bird
> >>> 1 1 18/01/2000
> >>> 2 2 12/09/1998
> >>> 3 1 01/01/1969
> >>> 4 1 21/03/1950
> >>> 5 2 25/05/1898
> >>>
> >>>
> >>> Is there any way to change the settings for the Stata allows dates prior
> >>> to 1900?
> >>
> >>
> >> What makes you think Stata can't handle dates prior to 1900? If you want to keep track of Charlemagne's coronation, you certainly can:
> >>
> >> g date = mdy(var1, var2, var3)
> >> clonevar disdate  = date
> >> format disdate %td
> >>
> >>  +------------------------------------------+
> >>  | var1   var2   var3      date     disdate |
> >>  |------------------------------------------|
> >>  |   12      1   1900    -21580   01dec1900 |
> >>  |    6     12   1899    -22117   12jun1899 |
> >>  |    4     15   1898    -22540   15apr1898 |
> >>  |    3     20   1842    -43020   20mar1842 |
> >>  |   11      1   1789    -62151   01nov1789 |
> >>  |    7      4   1776    -67019   04jul1776 |
> >>  |    1      1    800   -423681   01jan0800 |
> >>  +------------------------------------------+
> >>
> >> Stata may not be well suited for explorations in Roman history, as the first date that it can represent is 01jan0100 (see help date) but the Dark Ages are no problem.
>
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index