Pls I need further help.
looking for a way to use "replace command" or any other possible way to change/correct age of individuals in relation to date of birth (DOB)
example: "replace age="20" if DOB=1999-01-23 for a range of date of births say Jan 1999 - October 1999.
Individuals born within this period should have same age, some may have been entered in error.
Also looking for a way to identify errors associated with wrong ages in relation to year of birth.
Example generated by -dataex-. To install: ssc install dataex
clear
input str19 NAME str10 DOB str2 AGE
"Eff Francis" "1999-07-24" "22"
"Koyo Bassey" "1999-08-13" "20"
"Rose Koyo" "1999-02-12" "21"
"Matt John" "1999-04-10" "20"
"Abigail christopher" "1999-04-08" "23"
"David Abel" "1999-04-21" "20"
"Chang Monica" "1999-07-06" "24"
"Chiche Augustine" "1999-09-06" "20"
"Enya Monica" "1999-01-08" "22"
"SARAH SAMUEL" "1999-09-19" "19"
Thanks
Comment