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: Bug with date(.,.) function?
From
"Dimitriy V. Masterov" <[email protected]>
To
[email protected]
Subject
Re: st: Bug with date(.,.) function?
Date
Thu, 12 Apr 2012 18:11:05 -0400
That is very odd. I can't replicate your outcome with v12.1 on 64-bit
windows. Might be an issue for tech support.
Since I don't have your data, I tried to replicate this behavior with
public data. My outcome is exactly what I believed should happen:
sysuse tsline2, clear;
gen calories100=calories+100;
gen calories200=calories+200;
tw (tsline calories if day>td(01oct2002)) (tsline calories100 if
day>date("01oct2002", "DMY")) (tsline calories200 if
day>date("01oct2002", "mdy"));
*
* 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/