[EpiData-list] Date range selection for age calculation

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Tue Feb 20 01:15:30 CST 2007

 Dear Epidata team friends,
                                              I have two American date format variables. DOB is date of birth of baby and WDATE is date of weighing the baby for the growth monitoring. 

I used to write the following statement to calculate the age in months in EPI6

Define age ###
Let age=(WDATE – DOB)/30.44

 That does not work in EPI ANALYSIS

I tried the statement;
Let age= (date(“WDATE”,”mdy”) - date(“DOB”,”mdy”))/30.44
The error message was;
Data type mismatch

Please help.

Shavinder Singh

More information about the EpiData-list mailing list