LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 4 Dec 2004 22:58:23 GMT
Reply-To:     julierog@ix.netcom.com
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Roger Lustig <trovato@VERIZON.NET>
Subject:      Re: calculate age with month/year only
Content-Type: text/plain; charset=us-ascii; format=flowed

Neerav: Since you don't have the day, you need to assume it.

So, if you have some code to hand that uses MDY, just assign a 1 for all the days.

Alternatively, calculate age by subtracting birth year from current year, and then subtract 1 if birth month is greater than current month.

Or am I missing something?

Roger

Neerav Monga wrote: > Hi Everyone, > I need some help to calculate age using patient data. I have birth date > in the format YEAR-MONTH, i.e. 1960-12, and I have admission date i.e. > 2000-02. I don't have the actual day they were born or admitted. My > question is, based on dates in this format, how do I calculate age? > > I usually use the MDY format, but since days are not available, I am a > bit stuck on this one. Thanks in advance. > > Sincerely, > > Neerav >


Back to: Top of message | Previous page | Main SAS-L page