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, is already up and running.

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

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

From   "Dimitriy V. Masterov" <>
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:

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