/ Published in: SAS

URL: http://studysas.blogspot.com/2009/03/how-to-calculate-number-of-years-and.html

Exploring the yrdif and datdif functions in SAS as well as INTCK function: There are several ways to calculate the number of years between two dates and out of all the methods, YRDIF function results the most accurate value.

Syntax:

ageinyrs = YRDIF(birthdate, enddate, 'act/act'); ag_indays = DATDIF(birthdate, enddate, 'act/act');

Read more at: http://studysas.blogspot.com/2009/03/how-to-calculate-number-of-years-and.html

Expand |
Embed | Plain Text

http://studysas.blogspot.com/2009/03/how-to-calculate-number-of-years-and.html

You need to login to post a comment.