Statalist


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

st: Calculating date giving syntax error


From   "Ziad El-Khatib" <Ziad.El-Khatib@ki.se>
To   statalist@hsphsun2.harvard.edu
Subject   st: Calculating date giving syntax error
Date   Mon, 13 Aug 2007 02:37:42 -0700

Hi,
I am trying to calculate age of patients it gives 'type mismatch
error' (r(109)) for both of the following commands:

gen momage=scrndte-dobmom

and

gen momage=(scrndte-dobmom)/365.25



Any tips how to deal with it?


Thank you and best regards
ziad
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index