Thank you! That works fine.
Best regards,
Eduardo
2008/6/23 Steichen, Thomas J. <[email protected]>:
>
> The month() function expects the date to be in %td, not %tc format.
>
> You can convert "on the fly" as:
>
> generate ICUmonth=month(dofc(date))
>
> tom
>
> -----------------------------------
> Thomas J. Steichen
> [email protected]
> -----------------------------------
--
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/