From | David Kantor <[email protected]> |
To | [email protected] |
Subject | Re: st: data extraction by date |
Date | Tue, 02 Dec 2003 11:53:25 -0500 |
At 10:49 AM 12/2/2003 -0500, Mike Carney wrote:
I have a series of stock returns sorted by Stata's standard date form (that is, when 0 = 1Jan 1960). Is it possible for me to create a data set with 1 for all dates ranging from 1 jan to 10 jan (including all years) and zero otherwise. I've triedA couple of people have already replied while I was writing this, but here is my advice anyway.
. gen var2 = var1 if doy(1/4), month(1)
but it doesn't seem to work. Any help would be appreciated immensely!!!
regards,
Mike
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |