Statalist


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

st: Week() Function


From   "Eric G. Wruck" <[email protected]>
To   [email protected]
Subject   st: Week() Function
Date   Wed, 25 Jul 2007 15:14:08 -0400

I was trying to use the week function to graph weekly totals. However, I get some squirrelly results. Am I doing something wrong or have I uncovered a bug?


. gen week = week(date2)

. format week %tw

. l date2 week

+---------------------+
| date2 week |
|---------------------|
1. | 16jul2007 1960w30 |
2. | 17jul2007 1960w30 |
+---------------------+

Thanks,

Eric


--

===================================================

Eric G. Wruck
Econalytics
2535 Sherwood Road
Columbus, OH 43209

ph: 614.231.5034
cell: 614.330.8846
eFax: 614.573.6639
eMail: [email protected]
website: http://www.econalytics.com

====================================================
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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