Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Week of the month

From   "Katrin Gottschalk" <>
To   <>
Subject   st: Week of the month
Date   Fri, 5 May 2006 20:11:09 +0200

Dear all,

does anybody know of an easy way to obtain the NUMERIC WEEK OF THE MONTH
(i.e. 1,...,5) corresponding to an elapsed date? Should be something
similar to date functions day(e), dow(e), doy(e), week(e)...
I have a panel data set with daily observations. Week No. 1 should be
defined as the first week of the month that contains at least one
trading day (Mon - Fri).



*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index