Date: Tue, 20 Jun 2006 09:56:24 -0700
Reply-To: "Hill, Andrew" <hill.ad@GHC.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Hill, Andrew" <hill.ad@GHC.ORG>
Subject: Re: What is the custom for counting age?
Content-Type: text/plain; charset="us-ascii"
The custom is to round down. A person is 9 until they have their 10th
birthday.
The code that I use is:
AGE = FLOOR(INTCK("DAY",BIRTH_DATE, SECOND_DATE)/365.25);
Andrew
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jye
Sent: Tuesday, June 20, 2006 9:33 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: What is the custom for counting age?
Hi to all gurus on this forum!
When calculating age from two date variables, what is the usual practice
for counting those months before you reach the next birthday.
For example, if one date is Jan-01-1990 and the second date is
June-02-1999, is this person >9.5 and therefore 10 years old. Or is
he/she still 9 years old, since it is not his/her 10th birthday yet?
Thanks for any insight!
Have a good day!
Jye
|