Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Converting elapsed dates into years in study


From   Kieran McCaul <K.McCaul@curtin.edu.au>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Converting elapsed dates into years in study
Date   Mon, 17 May 2004 14:08:11 +0800

years = (var1 - var2)/365.25


-----Original Message-----
From: Lisa Sharwood [mailto:lisans@unimelb.edu.au]
Sent: Monday, 17 May 2004 1:59 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Converting elapsed dates into years in study


Hello all
I am wondering if I can get some assistance on how to convert the 
calculation from two elapsed dates
ie generate time in study = var1-var2

into a meaningful number relative to years in study?

Thanks a lot
Lisa
*
*   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/
*
*   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