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 on April 23, and its replacement, statalist.org is already up and running.


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

st: Bug with date(.,.) function?


From   Mattia Landoni <mattia.landoni@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Bug with date(.,.) function?
Date   Thu, 12 Apr 2012 01:27:55 -0400

Good morning, good people.

I was trying to plot a chart of some quantity and I discovered the following.

. dis date("01apr2011","DMY")
18718
. dis date("01apr2011","dmy")
.

So far, so good. However, when using the tsline plot, it behaves the
opposite way:

. tsline jpod if date >=  date("01apr2011","dmy")
<correct graph>
. tsline jpod if date >=  date("01apr2011","DMY")
<blank graph>

I am using Stata 11 64bit on Win7. Any idea of whether this is fixable?

-- 
Mattia Landoni
+1 217 4-A-QUANT (from US)
+39 02 3206 21676 (from Italy)
GMT -05:00 (US East)
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index