Date: Sat, 4 Dec 2004 22:58:23 GMT
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
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
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?
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.