I am building a database of daily activity in an ICU, and each day I
have a new row. I am planning to analize data by month. My variable
"date" is double, and has the format %tc.
I want to extract the month of the date in a new variable, "ICUmonth", this way:
generate ICUmonth=month(date)
Variable ICUmonth is created, but all its generated values are missing
values. Why?
Thanks in advance,
Eduardo
--
Eduardo Palencia Herrej�n
Jefe de Servicio de Medicina Intensiva
Hospital "Infanta Leonor", Madrid
C/ Gran v�a del Este, 80
28031 Madrid
Tfno: +34619204428
Fax: +34911919099
[email protected]
*
* 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/